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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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