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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
gauravnarchal
Post Prodigy
Post Prodigy

Replacing (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_1-1666093091994.png

 

 

4 REPLIES 4
v-tangjie-msft
Community Support
Community Support

Hi @gauravnarchal ,

 

I think you can try to create a measure.

VAR _t =
    [Your measure]
RETURN
    IF ( _t = BLANK (), 0, _t )

 

You can refer to similar posts that may be helpful to you:

Solved: replace blank with 0 in Matrix - Microsoft Power BI Community

Solved: Replace blank with 0 in matrix - Microsoft Power BI Community

Solved: Replacing blanks with 0 issue and data modeling is... - Microsoft Power BI Community

 

If the above does not help, can you please share a pbix file with some dummy data to test?

 

Best Regards,

Neeko Tang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

Hi @v-tangjie-msft - When i use the measure it opens all data off. How can i handle this?

 

gauravnarchal_0-1666954732950.png

 

 

mangaus1111
Solution Sage
Solution Sage

Hi @gauravnarchal ,

 

try this measure

 

= IF (

         ISBLANK([Your Measure]),

         0,

         [Your Measure]

)

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @mangaus1111  - When i use ISBLANK it opens all data off. How can i handle this?

 

gauravnarchal_0-1666094298266.png

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.