Forum Discussion
DAX help
- 8 years ago
PY Test = CALCULATE(DISTINCTCOUNT(Terms[Employee Number]),SAMEPERIODLASTYEAR(Terms[Actual Termination Date]))
It seems to work like this... when i refer to the date dimension table it doesnt seem to work, but this way it does. Does that seem right? could there be a reason that this is happening and maybe something i should fix upstream? Thanks, still getting my feet wet with DAX and powerbi.
Hi,
You have to create a relationship from the Actual Termination data column of the Terms Table with the Date column of the calendar table. If you need more specific help, share the link from where i can download your file.
- mikeborg828 years agoAdvocate II
Thanks. sent you message with the link. it is just a sample test file. thanks again for any help!
- Ashish_Mathur8 years agoSuper User
- mikeborg828 years agoAdvocate II
thank 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