Forum Discussion
Date Measures Help?
- 7 years ago
I have found the reason, functions like ENDOFMONTH(), ENDOFQUARTER() and ENDOFYEAR() will only return last day in the exist column, not the real ending day. So you can modify your measure using DAX as below to achieve what you want to achieve:
Difference = DATEDIFF(TODAY(), EOMONTH(ENDOFQUARTER(Table1[Date]), 0), DAY)
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi aaron1225,
Your measure and Date Table URL's are not working. Please post more inputs to clarify your problem.
Regards,
Pradeep
Below is my date table, essentially I am trying to determin the number of days remaining in a month so using:
- v-yuta-msft7 years agoCommunity Support
ENDOFMONTH() works well on my side. You can use table visual instead of card visual.
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- aaron12257 years agoHelper I
v-yuta-msft thank you, I was able to get this to work, however I can not get the ENDOFMONTH or ENDOFQUARTER to work in my measure.
I am trying to get the number of days from TODAY() to the ENDOFQUARTER. Using this measure DaysToEndOfQuarter = DATEDIFF(TODAY(),ENDOFQUARTER(dDate[Date]),DAY) it returns an incorrect value.
- v-yuta-msft7 years agoCommunity Support
Could you please show the expected result?
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.