Row Level security Formula

RAVISHANKAR R (DHL IT Services) 6 Reputation points
2021-07-23T15:48:44.517+00:00

Hi ,

I am trying to achieve a row level security filter through analysis services tabular model using Lookupvalue function based on the two columns in a security table , where based value in either of one column the RLS should work,

'User'[Country]
= LOOKUPVALUE (
'Users'[Country],
'Users'[email], USERPRINCIPALNAME (),
'Users'[Country], 'FACT_TABLE'[Country]
)
&& 'User'[Region]
= LOOKUPVALUE (
'Users'[Region],
'Users'[email], USERPRINCIPALNAME (),
'Users'[Region], 'FACT_TABLE'[Region]
)

The filter need to check the value from both the columns. here would like to know whether (AND (&&)) operator will work in RLS or not.
Thanks.

Azure Analysis Services
SQL Server Analysis Services
SQL Server Analysis Services
A Microsoft online analytical data engine used in decision support and business analytics, providing the analytical data for business reports and client applications such as Power BI, Excel, Reporting Services reports, and other data visualization tools.
{count} votes

1 answer

Sort by: Most helpful
  1. CarrinWu-MSFT 6,891 Reputation points
    2021-07-26T03:33:15.433+00:00

    Hi @RAVISHANKAR R (DHL IT Services) ,

    Welcome to Microsoft Q&A!

    here would like to know whether (AND (&&)) operator will work in RLS or not.

    As my research, it works. Please refer to Logical operators to get more information.
    117788-file.png

    Best regards,
    Carrin


    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.