- 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

Where values are blank()
Hi
I've created a measure where I need it to calculate distinct count of values where values are 'yes', if filter is selected and 0 if no filter.
I would like to show '0' or 'No values' if there are no values of "yes" as I continue to get Blanks if this is the case.
Here is my current measure:
Thanks in advance,
Laura
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

@Lauraeire_81 Try using
DAX
Measure 5 =
IF(
ISFILTERED('Report Results'[Systems]),
IF(
ISBLANK(
CALCULATE(
DISTINCTCOUNT('Report Results'[ServerN]),
'Report Results'[Out of Support] = "yes"
)
),
0,
CALCULATE(
DISTINCTCOUNT('Report Results'[ServerN]),
'Report Results'[Out of Support] = "yes"
)
),
0
)
Proud to be a Super User! |
|
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

@Lauraeire_81 Try using
DAX
Measure 5 =
IF(
ISFILTERED('Report Results'[Systems]),
IF(
ISBLANK(
CALCULATE(
DISTINCTCOUNT('Report Results'[ServerN]),
'Report Results'[Out of Support] = "yes"
)
),
0,
CALCULATE(
DISTINCTCOUNT('Report Results'[ServerN]),
'Report Results'[Out of Support] = "yes"
)
),
0
)
Proud to be a Super User! |
|
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Thanks this is perfect.

Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Power BI Monthly Update - February 2025
Check out the February 2025 Power BI update to learn about new features.

Subject | Author | Posted | |
---|---|---|---|
10-14-2024 03:28 PM | |||
08-08-2024 12:28 PM | |||
11-23-2022 05:08 PM | |||
09-11-2024 09:50 PM | |||
05-03-2024 04:22 AM |