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 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.
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 |
---|---|
113 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |