The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello,
im testing the dynamic RLS,
i have the following table.
RLS formula 1 ;
VAR _key =
CALCULATEtable(
values('Table'[empid]),
'Table'[adress] = username())
RETURN
PATHCONTAINS('Table'[emppath], _key )
testing RLS on test1 : test1 , should see all other users. ( the above code doesnt worrk)
RLS formula 2 :
VAR _key =
CALCULATEtable(
values('Table'[empid]),
filter(
'Table',
'Table'[adress] = username())
)
RETURN
PATHCONTAINS('Table'[emppath], _key )
with this code,
the RLS works.
so im confused about why the first code didnt work .
any help explaining the reason why the first code didnt work correctly, but the second did would be appreciated,
Go to manage role
select table column
for E.g [Adress] = USERNAME() click OK.
Than
Go to View As
Check
@Daniel29195 I hope this helps you!THANK YOU!!
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.