Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello ,
As you can see, I have created a Matrix in PowerBI. I want to subtract (010-020).
Could anyone help me with this issue?
Thanks in advance
Solved! Go to Solution.
Hey @sonaliverma ,
you can create sub totals for each value with variables and then subtract them.
The following approach should work:
My Total Measure =
VAR v010Value =
CALCULATE (
SUM ( myTable[myValue] ),
myTalbe[Value Type for Reporting] = '010'
)
VAR v020Value =
CALCULATE (
SUM ( myTable[myValue] ),
myTalbe[Value Type for Reporting] = '020'
)
RETURN
v010Value - v020Value
If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up.
Best regards
Denis
Blog: WhatTheFact.bi
Hey @sonaliverma ,
you can create sub totals for each value with variables and then subtract them.
The following approach should work:
My Total Measure =
VAR v010Value =
CALCULATE (
SUM ( myTable[myValue] ),
myTalbe[Value Type for Reporting] = '010'
)
VAR v020Value =
CALCULATE (
SUM ( myTable[myValue] ),
myTalbe[Value Type for Reporting] = '020'
)
RETURN
v010Value - v020Value
If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up.
Best regards
Denis
Blog: WhatTheFact.bi
@sonaliverma , You have create a measure for that, Row operation is not possible in power bi
M1=
calculate(sum(Table[Value]), filter(Table, Table[Value Type] ="001")) -
calculate(sum(Table[Value]), filter(Table, Table[Value Type] ="002"))
using isinscope, you can show that in grand total
if(not(isinscope(Table[Value Type])) ,[M1], sum(Table[Value]))
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
93 | |
77 | |
65 | |
53 |
User | Count |
---|---|
147 | |
106 | |
104 | |
87 | |
61 |