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
vicpg
Advocate I
Advocate I

Calculated Column Rank for Page Level Filter

Hi 

I have to create a page for each of our top production losses. In other words, rank the losses from 1 to 5 and then use the ranking to filter at page level. For example, if filtered on rank 1, all the info for the top loss will show.  I can't use a measure for this (measures nog allowed in page level filter). Please assist with the formula for a calculated column to rank the production losses . Thanks in advance.

ReasonQty
Bubbles3
Bad breakout15
Bright spot12
Fracture test2
Hole damage47
Bad breakout20
Bright spot5
Fracture test1
Hole damage7
Fracture test16
Hole damage13
Bad breakout3
Bright spot48
Fracture test21
Hole damage6
Row LabelsSum of QtyRank
Hole damage731
Bright spot652
Fracture test403
Bad breakout384
Bubbles35
1 ACCEPTED SOLUTION
ankitpatira
Community Champion
Community Champion

@vicpg that is actually easy to do. go to power bi desktop query editor -> Group by Reason column -> Sort by descending -> Add index column which will be your rank column.

 

Capture.PNGCapture1.PNGCapture2.PNGCapture3.PNG

View solution in original post

2 REPLIES 2
vrossouw
Helper III
Helper III

Thank you very much!  (I took me weeks and many complicated formulas, and I could not get to this result.) 

Thank you   !   Smiley Very Happy

 

ankitpatira
Community Champion
Community Champion

@vicpg that is actually easy to do. go to power bi desktop query editor -> Group by Reason column -> Sort by descending -> Add index column which will be your rank column.

 

Capture.PNGCapture1.PNGCapture2.PNGCapture3.PNG

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.