The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi all, I'm trying to add the Max of Revenue for each Customer ID together in a measure. For the data below, I'd like to add 60 (max for customer 1) and 110 (max for customer 2) to get 170.
Would anyone know how to do this? Thank you!
Customer ID | Customer Name | Revenue |
1 | Microsoft | 50 |
1 | Microsoft | 60 |
2 | Microsoft | 100 |
2 | Microsoft | 110 |
Solved! Go to Solution.
Hi @Anonymous
try a measure
Measure = SUMX(
SUMMARIZE('Table', 'Table'[Customer ID], "MaxRevenue", MAX('Table'[Revenue])),
[MaxRevenue]
)
Hi @Anonymous
try a measure
Measure = SUMX(
SUMMARIZE('Table', 'Table'[Customer ID], "MaxRevenue", MAX('Table'[Revenue])),
[MaxRevenue]
)
User | Count |
---|---|
78 | |
74 | |
43 | |
32 | |
28 |
User | Count |
---|---|
104 | |
95 | |
51 | |
50 | |
46 |