Forum Discussion
mikeborg82
Advocate II
8 years agoDAX help
PY YTD Terms = CALCULATE(DISTINCTCOUNT(Terms[Employee Number]),FILTER(SAMEPERIODLASTYEAR('Date Dim'[Date]),CONTAINS(VALUES('Date Dim'[Prior Year]), 'Date Dim'[Prior Year], 'Date Dim'[Date]))) I h...
- 8 years ago
mikeborg82
Advocate II
8 years agothank you. this does work! do you think you could explain what the issue was so i will know for future models? THanks again i really appreciate the help
Ashish_Mathur
Super User
8 years agoYou are welcome. The DATESBETWEEN() function used in the YTD terminations measure ensures that the arithmatic (distinctcount in our case) starts from the 1st day of the year and goes till the last date of the month chosen in the visual filter.