• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

PowerPivot Calculating Max of column

txfrazier

New Member
Hello,
I'm trying to calculate the maximum number in one column (Col 3) based on the common values in another column (Col 1). Example given. Thanks for your help.
 

Attachments

  • Max of Column 3 example.xlsx
    10.3 KB · Views: 3
Do you need it as measure or calculated column?

I don't have PowerPivot at work.
But, typically you'd use FILTER as criteria in calculation.

= CALCULATE(MAX(Tabel1[Col3]), FILTER(Table1, Table1[Col1] = "xxxx"))
 
Thanks. I'm trying to create a calculated column. I tried your suggestion but it only returned BLANK. Should I use something besides "xxxx" at the end of the formula? I removed the "xxxx" and it returned the largest number in the whole table for col 3.
 
Yes, replace with your condition.

Something like...
=CALCULATE(MAX(Table1[Col3]),FILTER(Table1,Table1[Col1]=EARLIER(Table1[Col1])))
 
Last edited:
Back
Top