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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
BenHoward
Helper I
Helper I

DAX to return the max value for each customer

I have a table with the following type of data

CustomerValue
A10
B20
15
A10
B21
B15

 

I  want to display a table in Power BI which just displays the max value for each customer, eg

CustomerValue
A10
15
B21


I then need another measure which totals the max (to display in a card), so that value in the above example would be 46.

Can anyone help with the dax measures please?

1 ACCEPTED SOLUTION
AntrikshSharma
Community Champion
Community Champion

@BenHoward 

Max w Total = 
SUMX ( 
    VALUES ( Ben[Customer] ),
    CALCULATE ( MAX ( Ben[Value] ) )
)

View solution in original post

1 REPLY 1
AntrikshSharma
Community Champion
Community Champion

@BenHoward 

Max w Total = 
SUMX ( 
    VALUES ( Ben[Customer] ),
    CALCULATE ( MAX ( Ben[Value] ) )
)

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors