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
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

2 REPLIES 2
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.

okay, this was also my only solution.

 

nonetheless thanks!

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.