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
sarah8991
Frequent Visitor

DAX Measure - Count, any null is 0 instead of (Blank)

I have a measure that counts the total number of customers, which then is used to Drill-Through to a table.

I put it onto a card visual. Some come back as (Blank), and I want this to be replaced with 0.

 

Here's my DAX, please help, it's not working:

Customer Name M = VAR _CustomerName = COUNT('All Customer Profiles'[Customer Name])
Return
IF(_CustomerName= "(blank)" ,"0",_CustomerName)
3 REPLIES 3
Kannan_n
Helper I
Helper I

Hi @sarah8991

so you are using the raw source data, is it correct?

 

 

 

So its easy to you just make new column with this code

 

 

 

Column = IF(ISBLANK(**original column**),0,**original column**)

  •  

**original column** - your name for the column you are using.

 

Then change the value to the new column and it should work 🙂

thank you!

Can you please mark this as complete. If you satisfied with the answer. 

Thanks and Regards 

Kannan.N 

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.