Forum Discussion
KMcCarthy9
4 years agoHelper V
DAX for CALCULATE Using a Column with a Date as Filter
Hi I have a table that holds a identifier column and a max_eff date column. I'm trying to do a simple Calculate formula to obtain a count for all the assetnums that have a max_eff date of 1/1/20...
- 4 years ago
Hi,
One of these should work
2021 Starting Asset Count = CALCULATE(COUNTA('Program Status'[assetnum]), 'Program Status'[max_effdate] = DATE(2021,1,1))2021 Starting Asset Count = CALCULATE(COUNTA('Program Status'[assetnum]), FILTER('Program Status','Program Status'[max_effdate] = DATE(2021,1,1)))Hope this helps.
KMcCarthy9
4 years agoHelper V
Ashish_Mathur Both work. Thank you!
Ashish_Mathur
4 years agoSuper User
You are welcome.