Forum Discussion

TSki's avatar
TSki
Regular Visitor
3 years ago
Solved

Top N slicer using measure

I am trying to make a sliding slicer off of this measure. I found this code from another user that, gives the TOPN for using COUNTROW to get the TOPN of the most repeated values.  Measure = VAR ...
  • v-yadongf-msft's avatar
    3 years ago

    Hi TSki ,

     

    Unfortunately, you can't add measure to slicer. As an alternative, you can create a new column:

     

    TOPN = RANKX('Table',[The most repeated values],,DESC,Dense)

     

     

    I think this is pretty close to what you want:

     

    Or like this:

    Best regards,

    Yadong Fang

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.