Forum Discussion
Measure that can return subtotal
Hi There
I have a matrix as below with columns from the table named "Query1".
And I'd like to create a measure that can add a column with the substotal of Order Demand -1 by WWB.
For example, for all material under WWB 100, the measure shall return 25797200 for all rows.
I tried measure like below but only get the same value as Order Demand-1.
Hi,
Try this measure
Measure = CALCULATE(SUM(Query1[Order Demand -1]),ALL(Query1[Material]))
5 Replies
- PC2790
Community Champion
Does the inbuilt feature of matrix in Subtotal section solve your purpose here?
- AnonymousNot applicable
Thanks, but perhaps I didn't make myself clear.
I do not want the subtotal, but want a measure that can return the subtotal by WWB for each row in the matrix.
Like below.
WWB Order Demand-1 Measure 100 32017714 25797200 32017717 25797200 .... 25797200
- Ashish_Mathur
Super User
Hi,
Try this measure
Measure = CALCULATE(SUM(Query1[Order Demand -1]),ALL(Query1[Material]))
- AnonymousNot applicable
Thanks Ashish, it works, never be clear enough about this context thing LOL
- Ashish_Mathur
Super User
You are welcome.