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.
Dear All,
i have the following table:
Order number | Item | Value |
1 | a | 12 |
1 | b | 15 |
2 | b | 15 |
2 | c | 20 |
3 | d | 11 |
3 | a | 12 |
I need the total order values of the order which contains item "a".
So my calculated measure shall give back 50 (because it sums all values of order 1 and 3).
Thank you very much
Solved! Go to Solution.
You can create a measure like
Value all orders =
var orderIDs = VALUES('Table'[Order number])
return CALCULATE( SUM( 'Table'[Value]), REMOVEFILTERS('Table'), orderIDs )
You can create a measure like
Value all orders =
var orderIDs = VALUES('Table'[Order number])
return CALCULATE( SUM( 'Table'[Value]), REMOVEFILTERS('Table'), orderIDs )
Exactly what I was talking about! Thank you a lot!