Forum Discussion
Calculated max value by using group by for multiple columns
- 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.
NathanielWill post pbix shortly.
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.
- Nathaniel_C6 years agoCommunity Champion
PBIX file PBIX
- Anonymous6 years agoNot applicable
Hi,
Thanks for your response Nathaniel_C ,
If it's possible I'd like to not create a new table but creating a new measure at the same table.
Otherwise with your solution you miss the last step by selecting the "Id offer" with the max "AMT":
Id Offer | ID Client | AMT | Lookup
1 | B | 150 | 2
Can we use the same functions without creating a new table but stay with the same table ?
Thnak you again for your answer!
- Nathaniel_C6 years agoCommunity Champion
Hi Anonymous ,
Maybe I am not seeing for what you are looking.
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.
NathanielAren't these the same?
- Anonymous6 years agoNot applicable
Hii,
I added a step to select the line with the max amount...
Thank you again for your answer
Regards.