Forum Discussion

michaelccdf's avatar
michaelccdf
Icon for Helper I rankHelper I
7 years ago
Solved

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?

  • michaelccdf's avatar
    michaelccdf
    7 years ago

    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.

4 Replies

    • michaelccdf's avatar
      michaelccdf
      Icon for Helper I rankHelper I

      Thanks Frank.  It shows the items but as blanks instead of 0's

      • PattemManohar's avatar
        PattemManohar
        Icon for Community Champion rankCommunity Champion

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