Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
I have a matrix which counts the distinct number of employees by language group and year. There are some cells that are blank as they do no have any employees in that particular year. If I use a DAX formula as the measure for this matrix
Employee Count = DISTINCTCOUNT(fait_employee_retention[MATR])+0
then the 0's appear in empty cells as expected. However, I lose the ability to do Show Records. Is there some way to add +0 to the Values field instead of using a measure?
Solved! Go to Solution.
I'm trying to do this without using a "custom" measure, but instead using the default "measure" that is created when you drag a column into the Values box. I can use a custom measure to achieve this (simply adding +0 at the end of the formula), but when I use a custom measure, I no longer have the option to See Records.
Hi @michaelccdf,
Does the option "show items with no data" work?
Regards,
Frank
Thanks Frank. It shows the items but as blanks instead of 0's
@michaelccdf Please try like this in your Measure. Along with "Show items with no data" option.
EmpCount = IF(ISBLANK(DISTINCTCOUNT(_Emp[EMPNO])),0,DISTINCTCOUNT(_Emp[EMPNO]))
Proud to be a PBI Community Champion
I'm trying to do this without using a "custom" measure, but instead using the default "measure" that is created when you drag a column into the Values box. I can use a custom measure to achieve this (simply adding +0 at the end of the formula), but when I use a custom measure, I no longer have the option to See Records.
User | Count |
---|---|
124 | |
108 | |
99 | |
62 | |
62 |
User | Count |
---|---|
137 | |
115 | |
102 | |
71 | |
61 |