Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.
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.
User | Count |
---|---|
77 | |
70 | |
70 | |
54 | |
48 |
User | Count |
---|---|
43 | |
37 | |
34 | |
31 | |
28 |