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.
Is there any Dax function to overwrite the Row Level Security ?
I want to display a messege when the RLS is activated. So I need a Dax that can funtion outside the RLS.
Thanks
Bishwa
Hey @BishwaR ,
you can check for a value that should be there. If it's not there the row level security works, otherwise it doesn't.
For example if the user is just allowed to see his own data you can do:
Check RLS = IF( COUNTROWS(UserTable) = 1 , "Row Level Security works", "You see all data master of the universe")
Would that work for you?
I had tried that DAX but the problem is when the RLS gets activated evertying on the canvas including that DAX gets blocked. So the unauthorized views will not be able to see that message as well.
Hey @BishwaR ,
why is it getting blocked?
With row level security you should in the worst case just not see any rows.
Can you provide a sample of the report?
Best regards
Denis
When I said blocked I mean not visible Sorry for the confusion
@BishwaR that's also what I mean. With RLS you should just not get a result, but the columns should still be visible. Why are they not visible?
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 |
---|---|
109 | |
98 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
111 | |
92 | |
84 | |
66 |