Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

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. 

1 ACCEPTED SOLUTION

Have you tried MAXX function here, MAXX function (DAX) - DAX | Microsoft Learn

 

Ritesh

View solution in original post

5 REPLIES 5
v-yalanwu-msft
Community Support
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:

vyalanwumsft_0-1668669232817.png

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.

ribisht17
Super User
Super User

@Anonymous 

 

Use below DAX

 

1. 

Max ARPU Per Product = CALCULATE(max(MinMax[ARPU]),ALLEXCEPT(MinMax,MinMax[Product]))
 
2.
Min ARPU Per Product = CALCULATE(min(MinMax[ARPU]),ALLEXCEPT(MinMax,MinMax[Product]))
 
ribisht17_0-1668589846716.png

 

 
Regards,
Ritesh
Mark my post as a solution if it helped you| Munde and Kudis (Ladies and Gentlemen) I like your Kudos!! !!
My YT Channel Dancing With Data !! Connect on Linkedin !! PL 300 Certification Series
Anonymous
Not applicable

This is what I am getting: 

 

jdalfonso_0-1668589819192.png

 

Have you tried MAXX function here, MAXX function (DAX) - DAX | Microsoft Learn

 

Ritesh

Anonymous
Not applicable

Still not working.

 

ARPU = measure A + measure B... + measure E

 

What I am trying to do is Minimum of a measure of a measure

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.