- 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

Removing (BLANK) results COUNTA formula adding IF(ISBLANK(
I'm having a little trouble adding the IF(ISBLANK function to a measure to remove the resulting (Blank). When trying to add I get the error that the IF(ISBLANK can only work with 1 argument.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Right, so maybe try this:
Count of Source for Red =
VAR __Value =
CALCULATE(COUNTA('Booking Charge Report'[Source]),
'Booking Charge Report'[Source] IN { "Red" }
)
RETURN
IF(ISBLANK(__Value)," ",__Value)
Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!: Power BI Cookbook Third Edition (Color)
DAX is easy, CALCULATE makes DAX hard...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Right, so maybe try this:
Count of Source for Red =
VAR __Value =
CALCULATE(COUNTA('Booking Charge Report'[Source]),
'Booking Charge Report'[Source] IN { "Red" }
)
RETURN
IF(ISBLANK(__Value)," ",__Value)
Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!: Power BI Cookbook Third Edition (Color)
DAX is easy, CALCULATE makes DAX hard...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Worked a treat, thanks Greg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

COUNTA will not consider blank,
And if you want blank the try like
Count of Source for Red =
CALCULATE(COUNTX(filter('Booking Charge Report'),not(isblank('Booking Charge Report'[Source]))'Booking Charge Report'[Source]),
'Booking Charge Report'[Source] IN { "Red" }
)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Sorry Greg, Just on that solution, it gave the desired effect but now the actual results are showing with 2 decimal places and the option to change this in the format bar are greyed out....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Disregard, I figured it out... Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Thanks amitchandak, sorry I'm not sure I understand "And if you want blank then try like" from your reply, are you saying that this will remove the (Blank) result from showing in the visual.

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
03-21-2024 09:11 PM | |||
05-06-2024 05:47 AM | |||
12-06-2024 05:52 AM | |||
11-29-2024 03:07 AM | |||
11-08-2024 10:28 AM |
User | Count |
---|---|
121 | |
105 | |
84 | |
52 | |
46 |