Forum Discussion
DAX help
- 8 years ago
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
sorry to keep this going - but is there any way to set this up a bit more dynamically? I would rather not have to update the model each month and I can't believe that PowerBI doesn't have a better solution..