Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Counting distinct items based on date criteria

Greetings,    I am having an issue with figuring out a measure that I just cant seem to hammer out. I am very new with using DAX.   I am needing to count rows based on dates, essentially somethin...
  • v-xiaotang's avatar
    v-xiaotang
    4 years ago

    Hi Anonymous 

    Thanks for reaching out to us.

     

    Try this measure

    count = 
    COUNTROWS(FILTER('Table','Table'[NextDate] < TODAY() && 'Table'[NextDate] = CALCULATE(MAX('Table'[NextDate]),ALLEXCEPT('Table','Table'[Name]))))

    I also create a sample for your reference, see file attached bellow.

     

     

    Best Regards,

    Community Support Team _Tang

    If this post helps, please consider Accept it as the solution to help the other members find it more quickly.