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
scottkad
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

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
Power Participant
Power Participant

@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 ! 

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])))

 

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
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.