Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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])
IF(_CustomerName= "(blank)" ,"0",_CustomerName)
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 


Helpful resources

PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors