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
gauravnarchal
Post Prodigy
Post Prodigy

Replace (Blanks) with 0

How can I replace with blank with 0 when there is no value returned in the table? If I add (+0) to the below measures it does not work.

 

Converted Count = COUNT(Data[Invoice No])

 

Not Converted Count = COUNTBLANK(Data[Invoice No])

 

Total Enquiry Count = COUNT(Data[Client Name])

 

Conversion Ratio % = [Converted Count] / [Total Enquiry Count]

 

 

gauravnarchal_0-1666120128656.png

 

When i use ISBLANK it opens all data off. How can i handle this?

gauravnarchal_1-1666120146336.png

 

 

 

 

 

 

1 ACCEPTED SOLUTION
gauravnarchal
Post Prodigy
Post Prodigy

Hi @Keith-Sayer  - Thank you for your help. I have modified your suggestion slightly to handle the results.

 

Converted Count =
var countinv = COUNT(Data[Invoice No])
return IF([Total Enquiry Count] >0,if(Isblank(countinv)=true(),0,countinv))

View solution in original post

3 REPLIES 3
gauravnarchal
Post Prodigy
Post Prodigy

Hi @Keith-Sayer  - Thank you for your help. I have modified your suggestion slightly to handle the results.

 

Converted Count =
var countinv = COUNT(Data[Invoice No])
return IF([Total Enquiry Count] >0,if(Isblank(countinv)=true(),0,countinv))
v-cgao-msft
Community Support
Community Support

Hi @gauravnarchal ,

 

Did the Keith's answer helped you? If so, please consider marking the most helpful answer as a solution, as this will help people searching the forum for similar questions in the future to find answers more quickly. Thanks in advance!

If the problem is still unresolved, you can continue to add details of the problem below and feel free to contact us.

 

Best Regards,
Gao
Community Support Team

Keith-Sayer
Resolver I
Resolver I

Variables work great for this. Example:

 

Converted Count =
var countinv = COUNT(Data[Invoice No])
return if(Isblank(countinv)=true(),0,countinv)

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

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.