The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi I'm trying to convert blank values in my matrix to Zero's. The table looks as follows:
I tried to create another measure as
Solved! Go to Solution.
Adding +0 to the end of your measure is one quick way to fix this
Forecast = CALCULATE(DISTINCTCOUNT(Task[UniqueTaskID]))+0
Paul Zheng _ Community Support Team
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Adding +0 to the end of your measure is one quick way to fix this
Forecast = CALCULATE(DISTINCTCOUNT(Task[UniqueTaskID]))+0
Paul Zheng _ Community Support Team
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@dmbd1904 - Generally that is:
Measure =
VAR __Calc = <some calculation>
RETURN
IF(ISBLANK(__Calc),0,__Calc)
Hi @Greg_Deckler , i tried that and got the same problem. See the image in my reply (It wouldn't let me include in the original post)
@dmbd1904 - Try
Measure =
VAR __Calc = <some calculation>
RETURN
IF(__Calc<0,0,__Calc)
No unfortunately that didn't work either
@dmbd1904 Can you post sample data as text that replicates this issue so I can mock it up?
Hi @amitchandak , I'm not sure I understand but is that what's causing the problem? Is there anyway to avoid the problem?
User | Count |
---|---|
75 | |
70 | |
39 | |
30 | |
28 |
User | Count |
---|---|
108 | |
96 | |
53 | |
48 | |
47 |