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

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.

Reply
Joostzelf
Regular Visitor

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

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.