Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Get Max and Minimum

Goal: Get Minimum and Maximum value from this table

ProductAcctNbrARPUMinMax
A1500100500
A2200100500
A3100100500
B4503050
B5403050
B6303050

 

What I am getting is same values for max and minimum. If I remove AcctNbr I want to be able to get 100 for A (min) and 500 for A (max)

 

ARPU is a measure field. 

 

When I use MIN or MAX(ARPU), it says that I can only use it if ARPU is a column field. 

5 Replies

  • v-yalanwu-msft's avatar
    v-yalanwu-msft
    Community Support

    Hi, Anonymous ;

    You could create a measure.

    Min = 
    MINX(ALLEXCEPT('Table','Table'[Product]),[ARPU])
    Max = MAXX(ALLEXCEPT('Table','Table'[Product]),[ARPU])

    The final show:

    Best Regards,
    Community Support Team _ Yalan Wu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.