Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Calcuate days between two dates without rows missing

Tried to use this DAX expression:

DateDiff =
                   var DF = 1. * ([StartDate] - [EndDate])
                   return IF([StartDate] <> BLANK(), DFTODAY())
 
Not all Rows have value on Column [StartDate] and [EndDate].  With Today() in DAX, will return all rows. However, without Today() in Dax, will return only those Rows with [StartDate] value. I don't want Today() value in column DateDiff and fill in Blank Value instead. 
What DAX expression can make it
 
  • Anonymous Try returning BLANK() but then set the Show items with no data:

     

  • Anonymous's avatar
    Anonymous
    4 years ago

    Yes, Blank() works when checked "Don't summarize". Thx

     

2 Replies

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

    Anonymous Try returning BLANK() but then set the Show items with no data:

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      Yes, Blank() works when checked "Don't summarize". Thx