Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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!!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
2 | |
2 | |
1 | |
1 |