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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
DPJay
Regular Visitor

Top N Filter

Hello,

 

I'm trying to rank locations based on a dynamic Top N filter using parameters. It seems to work if I have only loc2_name in my table view but when I add the location&state field as well to the view the ranks are shown as 1 . Can anyone help me on what I'm missing here.

 

Inkedsupplier_loc_ranking_LI.jpg

1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @DPJay

As tested, when all columns added to the Table visual is set as "don't summarize", create a measure as below may works

Note: compare with yours, please pay attention to the bold character.

Measure = IF(HASONEVALUE(Table1[late]), RANKX(ALL(Table1),[value],,DESC))

9.png

 

 

 

Best Regards

Maggie

View solution in original post

3 REPLIES 3
v-juanli-msft
Community Support
Community Support

Hi @DPJay

As tested, when all columns added to the Table visual is set as "don't summarize", create a measure as below may works

Note: compare with yours, please pay attention to the bold character.

Measure = IF(HASONEVALUE(Table1[late]), RANKX(ALL(Table1),[value],,DESC))

9.png

 

 

 

Best Regards

Maggie

rajulshah
Super User
Super User

Hello @DPJay,

 

Can you please share the formula for measure used for the rank?

Hello,

 

Rank Measure = IF ( HASONEVALUE ( FINAL_TBL[location&state] ), RANKX ( ALL (FINAL_TBL[location&state]), [TOT_QTY] ) )

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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