Forum Discussion

traviscole's avatar
traviscole
Advocate I
5 years ago
Solved

TOPN sorting

I am hardcore failing at making TOPN work in DAX instead of the filters on a visual.  I have tried and looked at a million different things and ways of doing it in my real data set and this dummy sam...
  • Jihwan_Kim's avatar
    5 years ago

    Volume total : =
    SUM(Volume[Volume])

     

     

    Top five volume measure : =
    CALCULATE (
    [Volume total :],
    KEEPFILTERS ( TOPN ( 5, ALL ( Items ), [Volume total :], DESC ) )
    )