Forum Discussion
Birinder
Helper III
4 years agoHow to create a new subtotal column from Measures ?
Hi there, As in the first picture you can see that I have 3 columns. What I want to achieve here is the exact solution as picture second. Now I will explain. As you can see there is a column na...
- 4 years ago
Birinder I think you want:
Sub-Total Each Category Measure = VAR __Quarter = MAX('Table'[Quarter]) RETURN SUMX(FILTER(ALL('Table'),[Quarter]=__Quarter),[Sales]) Margin Measure = [Sub-Total Each Category Measure] - MAX('Table'[Sales])
Birinder
Helper III
4 years agoHi there,
Thanks for the reply.
I want to ask you, Will this work if All the three columns ; "Quarter", "Model" and "Sales" are from 3 seperate tables, and are connected via relationship.
If Yes, then Inplace of "table" in code given by you, What am I supposed to enter.
Thanks and Regards