Forum Discussion
Subtracting Row
- 6 years ago
Nothing of what you ask for is simple. It is relatively easy to create a measure.
Y := calculate(sum('Values'[Value]),'Values'[Category]="B")- calculate(sum('Values'[Value]),'Values'[Category]="C")But that would then go into the values well, and make your visual look off
To achieve the look you are going for you would actually have to create individual measures for A, B and C, and put them under rows. (and have nothing in the actual row headers)
A := calculate(sum('Values'[Value]),'Values'[Category]="A") B := calculate(sum('Values'[Value]),'Values'[Category]="B") C := calculate(sum('Values'[Value]),'Values'[Category]="C") Y := [B]-[C]
Nothing of what you ask for is simple. It is relatively easy to create a measure.
Y := calculate(sum('Values'[Value]),'Values'[Category]="B")-
calculate(sum('Values'[Value]),'Values'[Category]="C")
But that would then go into the values well, and make your visual look off
To achieve the look you are going for you would actually have to create individual measures for A, B and C, and put them under rows. (and have nothing in the actual row headers)
A := calculate(sum('Values'[Value]),'Values'[Category]="A")
B := calculate(sum('Values'[Value]),'Values'[Category]="B")
C := calculate(sum('Values'[Value]),'Values'[Category]="C")
Y := [B]-[C]
thanks, that's really useful ...brings the usage of measures to life a bit for me.
much appreciated!!