Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Dynamic RANKX with multiple filters and slicer

Hi,   Power BI newbie here.  I am trying to dynamically rank my dataset for each Sale Transaction based on the Item Price. However i also have a slicer filter for Item Warehouse location which...
  • tamerj1's avatar
    tamerj1
    4 years ago

    Hi Anonymous 
    Yes it is working but this is a calculated column which cannot interact with the filter context.
    Try this measure on the full set of data

    Ranking Measure = 
    RANKX (
        ALLSELECTED ( Sales ),
        CALCULATE ( SUM ( Sales[Item_Price] ) ),
        ,
        ASC,
        DENSE
    )