Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I am using the following DAX measure in slicer.
If the count is zero, i am getting "[Blanl]" text in my slicer.
Instead of "[Blank]", i just want to display "0" Zero count in slicer. How to do this.
CALCULATE(DISTINCTCOUNT(EMP_TABLE[EMP_NO]),FILTER(EMP_TABLE,
EMP_TABLE[START_DATE] <= (EMP_TABLE[vCalDate20]) && NOT(isblank(EMP_TABLE[START_DATE])) &&
EMP_TABLE[EMP_STATUS] = "Active"))
Solved! Go to Solution.
you can probably do a +0 at the end of your measure or do a if(isblank)
ie
if(isblank(CALCULATE(DISTINCTCOUNT(EMP_TABLE[EMP_NO]),FILTER(EMP_TABLE,
EMP_TABLE[START_DATE] <= (EMP_TABLE[vCalDate20]) && NOT(isblank(EMP_TABLE[START_DATE])) &&
EMP_TABLE[EMP_STATUS] = "Active")),
0,
CALCULATE(DISTINCTCOUNT(EMP_TABLE[EMP_NO]),FILTER(EMP_TABLE,
EMP_TABLE[START_DATE] <= (EMP_TABLE[vCalDate20]) && NOT(isblank(EMP_TABLE[START_DATE])) &&
EMP_TABLE[EMP_STATUS] = "Active"))
Proud to be a Super User!
you can probably do a +0 at the end of your measure or do a if(isblank)
ie
if(isblank(CALCULATE(DISTINCTCOUNT(EMP_TABLE[EMP_NO]),FILTER(EMP_TABLE,
EMP_TABLE[START_DATE] <= (EMP_TABLE[vCalDate20]) && NOT(isblank(EMP_TABLE[START_DATE])) &&
EMP_TABLE[EMP_STATUS] = "Active")),
0,
CALCULATE(DISTINCTCOUNT(EMP_TABLE[EMP_NO]),FILTER(EMP_TABLE,
EMP_TABLE[START_DATE] <= (EMP_TABLE[vCalDate20]) && NOT(isblank(EMP_TABLE[START_DATE])) &&
EMP_TABLE[EMP_STATUS] = "Active"))
Proud to be a Super User!
Thanks. It's perfect.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
101 | |
86 | |
64 |