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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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