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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
Super User
Super User

@BenHoward 

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

View solution in original post

1 REPLY 1
AntrikshSharma
Super User
Super User

@BenHoward 

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

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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