Forum Discussion

vicpg's avatar
vicpg
Advocate I
10 years ago
Solved

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
  • 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.

     

2 Replies

  • ankitpatira's avatar
    ankitpatira
    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.

     

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

    Thank you   !   :smileyvery-happy: