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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
karlamaddox1
Helper I
Helper I

How do I show 0 instead of (BLANK) on data card

Count of TicketStatus for Working =
CALCULATE(
    COUNTA('ABF Unique Address Request form V1 (2)'[TicketStatus]),
    'ABF Unique Address Request form V1 (2)'[TicketStatus]
        IN { "Working" }
)
 
I am trying to get it to give me a "0" instead of blank on data card visualization. please help 
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @karlamaddox1 

Please try this formula .

Count of TicketStatus for Working =
var _count=CALCULATE(COUNTA('ABF Unique Address Request form V1 (2)'[TicketStatus]), 'ABF Unique Address Request form V1 (2)'[TicketStatus] IN { "Working" })
return IF(_count=0,0,_count)

The final result is as shown :

Ailsamsft_0-1651802789143.png

I have attached my pbix file , you can refer to it .

 

Best Regards,
Community Support Team _ Ailsa Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @karlamaddox1 

Please try this formula .

Count of TicketStatus for Working =
var _count=CALCULATE(COUNTA('ABF Unique Address Request form V1 (2)'[TicketStatus]), 'ABF Unique Address Request form V1 (2)'[TicketStatus] IN { "Working" })
return IF(_count=0,0,_count)

The final result is as shown :

Ailsamsft_0-1651802789143.png

I have attached my pbix file , you can refer to it .

 

Best Regards,
Community Support Team _ Ailsa Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

tackytechtom
Super User
Super User

Hi @karlamaddox1 ,

 

Just add a zero to your code like this :

Count of TicketStatus for Working =
CALCULATE(
    COUNTA('ABF Unique Address Request form V1 (2)'[TicketStatus]),
    'ABF Unique Address Request form V1 (2)'[TicketStatus]
        IN { "Working" }
) + 0


Let me know, if this helps 🙂

 

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

It gave me an error.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.