The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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.
@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! |
|
@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! |
|
Thanks this is perfect.