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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.