Forum Discussion

Dn_wemn's avatar
Dn_wemn
Helper II
2 years ago
Solved

Display column value by Rank = 1

Hi,

 

I'd like to create a column or a measure that displays the Sub-Segment value in which the created measure "Rank by Volume" equals 1. It should be displayed on a card visual.

Expected result: So here the card should display "SUV" because it has rank = 1 which is based on highest volume for each Sub-Segment.

 

Sample data:

Sub-SegmentRank by Volume (Measure)Sum of Volume
SUV1200
Car2150
Van3120
PUP4100
MPV590
  • Hi Dn_wemn 

     

    You can just simply apply the visual filter on card.

     

    Just take Sub-Segment value on the card . then open visual filter > add Rank column on visual filter section > put the condition show item when value is 1>apply filter 

     

     

     

    Every time when your ranking changes it auto changes. 

     

    No need to do anything extra.

     

    I hope I answered your question!

     

     

     

     

7 Replies

    • Dn_wemn's avatar
      Dn_wemn
      Helper II

      Hi, it does not show SUV when I tried it: 

       

       

      btw, here is my measure for rank by volume:

      Rank by Volume = RANKX(
                 ALLSELECTED( 'Table'[Sub-Segment])
                  , CALCULATE(SUM('Table'[Volume])) 
                  )
      • Uzi2019's avatar
        Uzi2019
        Community Champion

        Hi Dn_wemn 
        You can try my solution without creating measure.

         

         

  • Uzi2019's avatar
    Uzi2019
    Community Champion

    Hi Dn_wemn 

     

    You can just simply apply the visual filter on card.

     

    Just take Sub-Segment value on the card . then open visual filter > add Rank column on visual filter section > put the condition show item when value is 1>apply filter 

     

     

     

    Every time when your ranking changes it auto changes. 

     

    No need to do anything extra.

     

    I hope I answered your question!

     

     

     

     

    • Dn_wemn's avatar
      Dn_wemn
      Helper II

      Hi, I tried this before, but in this case Rank by Volume is a created measure. It does not allow me to filter Rank by volume = 1 in a card visual. I can't open the dropdown to select a filter option.

       

      • Uzi2019's avatar
        Uzi2019
        Community Champion

        Hi Dn_wemn 

        Yes becasue measure wont work for you. You have to create calculated column for ranking then take ranking column into card filter.