Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
michaelccdf
Helper I
Helper I

Putting +0 into Values field

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?

value.png

1 ACCEPTED 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.

View solution in original post

4 REPLIES 4
v-frfei-msft
Community Support
Community Support

Hi @michaelccdf,

 

Does the option "show items with no data" work?

 

2.PNG

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

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]))

image.png





Did I answer your question? Mark my post as a solution!

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.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.