Forum Discussion

mmparvez's avatar
mmparvez
Frequent Visitor
2 years ago
Solved

Slicer doesn't show column with zero value

I have a simple table A matrix with a slicer shows:  But on the 20 January it shows only male:  But i like to see it with "F" column with 0 values. How can i do that?
  • Data-estDog's avatar
    Data-estDog
    2 years ago

     

    Just wrap it around the main expression:

    YTD = TOTALYTD(
       IF(ISBLANK(SUM('Sheet1'[Value]),0,SUM(Sheet2[Value]))
      ,'Sheet1'[Date].[Date]
      ,'Sheet1'[Date]<= SELECTEDVALUE(Sheet1[Date])
    )