Forum Discussion

wnicholl's avatar
wnicholl
Resolver II
3 years ago
Solved

Measure needed using a date field

Hello,   I have a date field that contains dates and "0".  I need to create a measure that will count the dates but exclude the "0".    Any help would be appriciated and thanks in advance!!    ...
  • ray_aramburo's avatar
    3 years ago

    Write a measure like this:

    Date Count =
    CALCULATE(COUNT('NameOfYourTable'[QORDT]), 'NameOfYourTable'[QORDT]) <> 0)