cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
scottkad Frequent Visitor
Frequent Visitor

DAX Calculate the Max for a Group

Hello!  I have a problem and have a feeling a simple DAX formula can solve it. 

I would like the 'Desired Output' column to be the Max of the 'Check' column, evaluated for each Name. 

 

desired output.JPG

Any help is much appreciated, thanks. 

1 ACCEPTED SOLUTION

Accepted Solutions
scottkad Frequent Visitor
Frequent Visitor

Re: DAX Calculate the Max for a Group

Thanks for the post ashishrj,

After many more google searches I was able to find this, Stack Overflow Calc Max


Desired Output=CALCULATE(MAX([Check]),FILTER(Table1,[Name]=EARLIER([Name])))

 

View solution in original post

3 REPLIES 3
ashishrj Senior Member
Senior Member

Re: DAX Calculate the Max for a Group

@scottkad You can use MAX() DAX expression. In your case Desired Output = MAX (TableName[Check]). Let me know if this is what you are looking for ! 

scottkad Frequent Visitor
Frequent Visitor

Re: DAX Calculate the Max for a Group

Thanks for the post ashishrj,

After many more google searches I was able to find this, Stack Overflow Calc Max


Desired Output=CALCULATE(MAX([Check]),FILTER(Table1,[Name]=EARLIER([Name])))

 

View solution in original post

Shmidtk Frequent Visitor
Frequent Visitor

Re: DAX Calculate the Max for a Group

But what you going to do if you have unsorted list? You can't really on ordering in general. Is there is way to do this without order dependence?

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 278 members 2,694 guests
Please welcome our newest community members: