Forum Discussion
Anonymous
5 years agoNot applicable
Count Date Rows in Last Month
Hi All, I have a column called 'Dates' this column shows various dates. Please can you show me the DAX to count the number of rows with dates in the last month? Many thanks, E
- Anonymous5 years ago
Hi Tim,
The formula is shown below;
Erected in Past Month = CALCULATE(DISTINCTCOUNT('Standing Scaffold Data'[ErCompleteDate]), PREVIOUSMONTH('Standing Scaffold Data'[ErCompleteDate]) )Sample Data:ErCompleteDate01/01/202001/01/202101/02/202107/09/2019etcRegards,E
timg
5 years agoSolution Sage
Hi Serdet,
Yes that's correct. Could you perhaps share your formula and a sample of your date table data?
regards,
Tim
Anonymous
5 years agoNot applicable
Hi Tim,
The formula is shown below;
Erected in Past Month = CALCULATE(DISTINCTCOUNT('Standing Scaffold Data'[ErCompleteDate]), PREVIOUSMONTH('Standing Scaffold Data'[ErCompleteDate]) )
Sample Data:
ErCompleteDate
01/01/2020
01/01/2021
01/02/2021
07/09/2019
etc
Regards,
E