Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
bencurt4
New Member

Replace blank with 0 on card when field has no/empty data

Hi

 

I have done a lot of looking online and through these forums and cannot seem to find an answer to my problem.

 

I am trying to replace (Blank) with a 0 on a couple of cards. These card visuals do not link to slicers or other visuals but directly to a field in the table. The field in the table is empty.

 

I have tried to add a measure using ## = SUM(Table[Field])+0 but when I drag this onto the field of the card I get a cross on the card.

 

Surely this cannot be complicated - I am fairly new to PowerBI so any help would be appreciated.

 

Thanks

Ben

8 REPLIES 8
v-yanjiang-msft
Community Support
Community Support

Hi @bencurt4 ,

Is your problem solved?? If so, Would you mind accept the helpful replies as solutions? Then we are able to close the thread. More people who have the same requirement will find the solution quickly and benefit here. Thank you.

Best Regards,
Community Support Team _ kalyj

bencurt4
New Member

Hi

 

I am getting this error:

bencurt4_0-1653646363581.png

Does this mean I have to use something other than SUM to display 0 instead of (Blank) ?

Anonymous
Not applicable

Hi 

You can convert the string value in the measure and then add it

Measure = SUMX('Table',CONVERT('Table'[Value 2],INTEGER))+0

Hi

 

This works for showing 0, however when there is data in the field I now get this:

bencurt4_0-1653658910057.png

Thanks
Ben

Hi @bencurt4 ,

According to your description, I reproduce your problem. It's not because of the formula, but because the card visual can't display such a large number. 

vkalyjmsft_0-1654075669319.png

If you create a table with a single row, enter a large value and put the column in a card visual, it can get the same result.

             vkalyjmsft_1-1654075908542.png

vkalyjmsft_2-1654075929656.png

You can change the card visual to a table visual, it works fine.

vkalyjmsft_3-1654076101870.png

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.

Anonymous
Not applicable

Hi

 

I guess the column is of type string. Change that to whole number cause SUM() uses only numerical columns

Is there a different formula I could use other than SUM to show a 0 value?

Anonymous
Not applicable

Hi,

I created a sample table with a column having blank values

esha_shah2002_0-1653643828658.png

 

I created the same measure you have mentioned and i am getting output as follows

esha_shah2002_1-1653643935822.png

 

the measure is working fine for me .

 

if this post helps, accept it as a solution

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors