Forum Discussion

ChristianDLS56's avatar
ChristianDLS56
Frequent Visitor
3 years ago
Solved

Maximum Value of a Dynamic Measure

Good day everyone! Would anyone know how to create a measure that returns the maximum value of a dynamic measure?

 

Example:

MARKETSALESUNITUNIT/SALES
A2054
B1025
C3056
D50225
E1535
F20102
TOTAL145275.37

**note that sales, unit, and sales/unit are measures and respond to whatever is showing in the market field

**Market field is linked to a filter so values are changing

 

What i want is to have a measure that will return the value 25. Let me know if this is possible. Thanks!

  • ChristianDLS56 ,

    try this measure

     

    Max sales = 
    VAR _max = MAXX(ALLSELECTED(Tablename[Market]),[Measure])
    RETURN _max

     

    Thanks,

    Arul

  •  

    try this measure,
    Measure = MAXX(ALLSELECTED('table'[MARKET]),[UNIT/SALES])

     

3 Replies

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

    ChristianDLS56 ,

    try this measure

     

    Max sales = 
    VAR _max = MAXX(ALLSELECTED(Tablename[Market]),[Measure])
    RETURN _max

     

    Thanks,

    Arul

  •  

    try this measure,
    Measure = MAXX(ALLSELECTED('table'[MARKET]),[UNIT/SALES])