Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
I have a table which outputs values, but where we don't have a value, the output returned is blank.
Is there anything I can do within my existing logic to return a 0 value instead of Blank, please?
Calculate(
Sum('apps'[spend]),
'apps'[sys]= "T"
)
Solved! Go to Solution.
Hi @M_SBS_6 ,
Please try if this formula helps:
Measure =
VAR _SUM =
CALCULATE ( SUM ( 'apps'[spend] ), 'apps'[sys] = "T" )
RETURN
IF ( _SUM = BLANK (), 0, _SUM )
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @M_SBS_6 ,
Please try if this formula helps:
Measure =
VAR _SUM =
CALCULATE ( SUM ( 'apps'[spend] ), 'apps'[sys] = "T" )
RETURN
IF ( _SUM = BLANK (), 0, _SUM )
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@M_SBS_6 ,
Add a "+ 0" to the end of your Statement:
Calculate(
Sum('apps'[spend]),
'apps'[sys]= "T"
) + 0
Best Regards,
Thanks. The problem with doing that is my table now includes more blank records than before. Not sure why it would do that
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
101 | |
74 | |
43 | |
38 | |
31 |
User | Count |
---|---|
166 | |
90 | |
65 | |
46 | |
43 |