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.
Hi,
Hi
I have somes measure to get result of factors: A,B,C,D,Cost
Logic for :" Cost (exclude factor) = Cost - remaining factors
Now I wanna create a matrix that like below
{ Cost ( exclude factor) = Cost - (A+B+C+D) = 104-(10+34+22+23) = 25}
in case If I remove some factors (A,B,C,D), the matrix will auto calculate " Cost (Exclude factor)".
For example:
{ Cost ( exclude factor) = Cost - (A+C+D) = 104-(10+22+23) = 25}
Is there anyway to do it in PBI ?, by creating measure?
Hi,
I am not sure if I understood your question correctly, but please try to write a measure something like below.
Expected measure: =
SWITCH (
SELECTEDVALUE ( 'tablename'[Factor] ),
"Cost(exclude factor)"
= CALCULATE (
SUM ( 'tablename'[Amt] ),
FILTER ( ALLSELECTED ( 'tablename' ), 'tablename'[Factor] = "Cost" )
)
- CALCULATE (
SUM ( 'tablename'[Amt] ),
FILTER ( ALLSELECTED ( 'tablename' ), 'tablename'[Factor] <> "Cost" )
), SUM ( 'tablename'[Amt] )
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi @Jihwan_Kim
Thanks for your help
However, My issue is that, each reasult in column "Amt" in matrix are Measure
For example:
A= [A], B = [B], C =[C], Cost =[Cost]
So logic for Cost (exclude factor) = Cost - remaining factors
Then to issue the matrix I create a measure like:
Amt =
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 |
---|---|
115 | |
100 | |
88 | |
68 | |
61 |
User | Count |
---|---|
152 | |
120 | |
102 | |
87 | |
68 |