Forum Discussion
user900
Helper II
2 years agoHelp with Date
I have a data file that includes a Report Month field (10/1/2022 through 10/1/2023). Data type is set as Date. I want to create a measure to get the distinct count of IDs on or before 7/1/2023. Bu...
Uzi2019
Community Champion
2 years agoHi user900
Please try below measure
Total Count= CALCULATE(COUNT('Table'[ID]),FILTER('Table','Table'[Date]<=DATE(2023,07,01)))
If my post helps please give kudos and accept it as a solution!
Thanks
If my post helps please give kudos and accept it as a solution!
Thanks
user900
Helper II
2 years agoFantasic! I did make a minor change.
Total Count= CALCULATE(DISTINCTCOUNT('Table'[ID]),FILTER('Table','Table'[Date]<=DATE(2023,07,01)))
Thank you so much.