Forum Discussion
mikeborg82
8 years agoAdvocate II
DAX 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
Ashish_Mathur
8 years agoSuper User
Hi,
How about this
=CALCULATE(DISTINCTCOUNT(Terms[Employee Number]),SAMEPERIODLASTYEAR('Date Dim'[Date]))mikeborg82
8 years agoAdvocate II
Oddly, this did not work. I get the same results with this calc (all of prior year), not just YTD last year at this time..