Reply
Highlighted
Frequent Visitor
Posts: 5
Registered: ‎09-01-2016
Accepted Solution

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. 


Accepted Solutions
Frequent Visitor
Posts: 5
Registered: ‎09-01-2016

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


All Replies
Senior Member
Posts: 341
Registered: ‎07-12-2015

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 ! 

Frequent Visitor
Posts: 5
Registered: ‎09-01-2016

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

 

Frequent Visitor
Posts: 2
Registered: ‎07-03-2018

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?