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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
shubhamc_002
Helper I
Helper I

Ranking column based on RLS

HI Team, 

 

We have one requirement in which ranking of product ID should be decided even after applying RLS also.
Consider below table (Raw data), In this table Calculated COlumn having rankX measure applied based on ID column

Product ID Product NameCalculated Column(Rank)
1A1
2B2
3C3
4D4
5E5


Requirement is to generate below output after RLS applied(RLS is applied on Product ID. Based on User acces Product ID will be filtered from dataset). 

Product ID Product NameCalculated Column(Rank)
1A1
3C2
5E3

 

Unfortunatly if we are using RANKX measure it is giving us same ranking which was calculated before . for above table it will show 1,3,5 even in calculated Column(Rank) as well. 

Can you please let us know if any way to solve this . 

DAX measure used for calculated column
RANKX( 'Product','Product[Product ID],,ASC)

 

Thanks

1 REPLY 1
wdx223_Daniel
Super User
Super User

calculated column can not get outside filters. it's ok in visual page

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.