Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi
I have a simple data model with fact and dim tables as below
I create a table visual and the results are as expected
External Cost is this measure
Now when I change the measure to
Solved! Go to Solution.
@Richard_Halsall , The first one should work when sum is 0. Can you share output you want.
Try measures likes
M1= CALCULATE(
SUM(FactPOL[Total_Cost__c]),
DimPO[Supplier] <> "Power US"
)
PO Cost =
Switch(ISBLANK([M1]), blank() ,
[M1]=0, blank(), [M1] )
Or
PO Cost =
Switch(ISBLANK([M1]), blank() ,
[M1]=0, 0, [M1] )
@Richard_Halsall , The first one should work when sum is 0. Can you share output you want.
Try measures likes
M1= CALCULATE(
SUM(FactPOL[Total_Cost__c]),
DimPO[Supplier] <> "Power US"
)
PO Cost =
Switch(ISBLANK([M1]), blank() ,
[M1]=0, blank(), [M1] )
Or
PO Cost =
Switch(ISBLANK([M1]), blank() ,
[M1]=0, 0, [M1] )
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
114 | |
94 | |
89 | |
35 | |
32 |
User | Count |
---|---|
153 | |
101 | |
82 | |
63 | |
52 |