Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Is there a function to Show the RLS Role Applied?

When i want to Validate The Roles i have defined the powerbi Desktop lets me Choose either of them.

Once Choosen the Desktop shows me "Viewing As" and the the role applied.

 

That's why i suspect there is a function in the PowerBI Desktop which could give me the "Applied Role".

 

is It available to desktop users ?

If not Why not ?

If Yes what is the ( i guess function) Name.

It could be a solution to many questions raised in this forum.

 

4 REPLIES 4
tex628
Community Champion
Community Champion

To my knowledge there is no fuction to return the active role. What you could do, is create a table with all possible RLS roles and simply have the RLS filter that table aswell. This should allow you to display the role that is currently active for the user. 

Br, 
J


Connect on LinkedIn
Anonymous
Not applicable

Thank you very well Tex628,

 

This would definitely do the job and i will surely use it like that.

Having Said that.. it does double up the work you need to do to find out compared to just having a (dax) function.

So i still wonder why MS would not give away that function. Can an ms official answer this? 

 

solution accepted( though a bit grumpy).

tex628
Community Champion
Community Champion

I totally agree with you, MS is most likely going to refer you to the ideas board. If you either create of find a suitable idea, @me and link it here and i'll throw in a vote as well.

/ J


Connect on LinkedIn
amitchandak
Super User
Super User

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors