Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Calculated max value by using group by for multiple columns

Hi, I'm trying to calculate the max value by using group by for multiple columns.   I Have this table :   What  I want to do is to calculate the max amount for each "Id offer" by selecting...
  • Nathaniel_C's avatar
    6 years ago

    Anonymous ,

    If I understand this correctly, you are creating a new table. I used SUMMARIZE and LOOKUPVALUE

    new = SUMMARIZE('Table','Table'[ID Offer],'Table'[ID Client],"AMT",max('Table'[Amount])),
    ==
    Lookup = LOOKUPVALUE('Table'[Rev],'Table'[Amount],new[AMT],'Table'[ID Offer],new[ID Offer],'Table'[ID Client],new[ID Client])



    Let me know if you have any questions.

    If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
    Nathaniel

     

     Will post pbix shortly.