cancel
Showing results for
Did you mean:

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Helper V

## Replace BLANK with 0

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"

)

1 ACCEPTED SOLUTION
Community Support

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.

4 REPLIES 4
Community Support

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.

Super User

``````Calculate(

Sum('apps'[spend]),

'apps'[sys]= "T"

) + 0``````

Best Regards,

Helper V

Thanks. The problem with doing that is my table now includes more blank records than before. Not sure why it would do that

Super User

Can you paste a small sample of your 'apps' data table?

Exclude any sensitive data.