Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Obtain the maximum value of a Measure

Hi all ! How are you?

 

How can I get the maximum value of a measure?
The measure can be affected by date filters, country, store.

 

The example is as follows:

In this case, the value of store A is the highest, but if I select more stores, the highest value can be another.

The highest value I need to use to be the denominator of a division.

 

Regards!!

5 Replies

    • parry2k's avatar
      parry2k
      Icon for Super User rankSuper User

      Anonymous try this

       

      Highest Value measure = 
      MAXX ( VALUES ( Table[Store] ), [Your Measure] )
      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi parry2k  !

         

        This way:

        Highest Value measure = 
        MAXX ( VALUES ( Table[Store] ), [Your Measure] )

         It only works if I use the measurement on a card.
        If I add the measurement to my table, it shows me the same values as the total for each store.

         

        I need to use the higher value (6.6 in this example) to use it as denominator in the next division:
        Division = (Total / Hightest Value measure)

         

        Regards!