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.
Have Dynamic RLS working fine. Howerver ran into a situation where I would like to add column content based on the RLS role of the current user. I have two Roles: Admin and Delegate. How do I add content to a column only if the viewers role is "Admin"?
Not understood your request fully but based on your input, you already implemented RLS and have the way to define who is admin. You can use the same in a measure with if condition.
My Measure = IF([User is Admin], "value")
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
I guess I was not clear. I don't want to know 'who' is an Admin. I want to know the Role of the Viewer. It will have to be a DAX Measure I expect. If it exists at all.
Scenario is This:
Hi @JWBennett
Do you follow this article to set RLS?
As you said, "I don't want to know 'who' is an Admin", to make RLS work well, you need define each role with your rule.
To test a role,
You can go to Power BI Service,
You will then see reports that are available for this role
You can test other roles, or combination of roles, by selecting Now viewing as.
You can choose to view data as a specific person, or you can select a combination of available roles to validate they are working.
Best Regards
Maggie
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 |
---|---|
117 | |
104 | |
77 | |
73 | |
52 |
User | Count |
---|---|
145 | |
109 | |
109 | |
90 | |
64 |