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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Companyuser101
Helper II
Helper II

RLS and rank Measure

Hello I want to rank different costumers. eg this costumer is on rank 9.

 

Companyuser101_0-1708435810032.png

 

Those costumers are also able to use the report and then should see their rank. 

I have all these costumers on RSL. 

When they log on they always are on the first rank because of the security hirachy. 

Companyuser101_1-1708435881759.png

Companyuser101_2-1708435881888.png

 

How can I change the measure, so the rank stays the same?

 

The formula: 

CALCULATE(rANKX(ALL('Zuordnung - RSM/VP'),[P4P Faktor Kombiniert],,DESC)
 
The rls is on the table: Zuordnung - RSM/VP'
 
Thanks.
1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

I think you would need to add a table to your model that has the customers and their rank pre-calculated and you could show the value off that table.  The ranking would get calculated when the model refreshes, not when the user views the report with is where the ranking data is restricted by RLS.

View solution in original post

3 REPLIES 3
jdbuchanan71
Super User
Super User

I think you would need to add a table to your model that has the customers and their rank pre-calculated and you could show the value off that table.  The ranking would get calculated when the model refreshes, not when the user views the report with is where the ranking data is restricted by RLS.

@jdbuchanan71  could you please explain how to add the table to the model

okay, this was also my only solution.

 

nonetheless thanks!

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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