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

The Fabric community is upgrading! Read all of the details including the timeline and what you can expect. 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.