Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
DAX Measure - Count, any null is 0 instead of (Blank)
05-04-2023
11:48 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2023
01:29 PM
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 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2023
01:27 PM
thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2023
06:23 PM
Can you please mark this as complete. If you satisfied with the answer.
Thanks and Regards
Kannan.N

Helpful resources
Recommendations
Subject | Author | Posted | |
---|---|---|---|
05-03-2024 07:18 AM | |||
06-26-2023 05:24 AM | |||
04-13-2023 02:32 PM | |||
06-24-2024 08:30 PM | |||
06-19-2024 08:36 AM |
Featured Topics
Top Kudoed Authors (Last Month)
User | Count |
---|---|
141 | |
110 | |
81 | |
61 | |
46 |