Forum Discussion
user900
2 years agoHelper II
Help 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
2 years agoCommunity Champion
Hi 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
- user9002 years agoHelper II
Fantasic! I did make a minor change.
Total Count= CALCULATE(DISTINCTCOUNT('Table'[ID]),FILTER('Table','Table'[Date]<=DATE(2023,07,01)))
Thank you so much.