Hi,
I have a table relationship where i have duplicates. I need a calculation where if it finds a duplicate it only sums up one value, the first or max value.
In the below image the “Risk ID” number 5 appears twice. When summing up the Average i need it to only count of the 10 values?
Only count once if it’s a duplicate.pbix (36.3 KB)
Hi @chad.sharpe ,
Thanks for sending through this file. You can use SUMMARIZE function to achieve this and the final result will not show duplicates.
*Total Risk Rating_new = SUMX(SUMMARIZE(Risk,Risk[Risk ID],“MaxRiskbyID”,MAX(Risk[Risk Rating])) ,[MaxRiskbyID])
Kind regards,
Hafiz
1 Like
Excellent… I tried a few iterations of Summarize but I could not get the syntext correct… This looks great.
Check out some of the data mentor in action on this solution
1 Like
I set aside an hour every day to learn different PowerBi “things”… I’ll take this one on today…
Thanks…