Forum Discussion
DAX help
- 8 years ago
Thanks. sent you message with the link. it is just a sample test file. thanks again for any help!
- 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
- Ashish_Mathur8 years agoSuper User
You 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.
- mikeborg828 years agoAdvocate II
Yes, this makes perfect sense. I assumed when I used a function like "TotaLYTD", that powerbi would know to give me the total of the year I am in YTD at the time, and I wouldn't need to add a filter. My date dimension table goes for several years ahead, so this could be why when I use the totalytd function with no filter, I get blank results.
Thanks again for your help.
- mikeborg828 years agoAdvocate II
i see you had to apply filters to the page. is that the only way to handle this?
- Ashish_Mathur8 years agoSuper User
Hi,
Using filters is the easiest way to make it work.