Forum Discussion
DAX : Month To date formula help
- 8 years ago
Hi @
What happens when you use your 'Calendar'[Date] field on a visual with your calculated measure. It seems strange to use it with a Week Day Name field. MTD functions will try to cumulate your measure up over the days of the calendar month.
Hi @
What happens when you use your 'Calendar'[Date] field on a visual with your calculated measure. It seems strange to use it with a Week Day Name field. MTD functions will try to cumulate your measure up over the days of the calendar month.
Hi Phil_Seamark
Thanks for your reply.. It is showing wrong result..
Please have a look.. It should show only june's value..But it also shows may and other's month value..
- Phil_Seamark8 years agoMicrosoft Employee
Hi snandy2011
That's the way the MTD function works. For whatever day on whatever month you pass to it, it will return what the cumulative value of the measure is to that day of that month.
If you only want to show data for June, then use a slicer to filter on June so that only those days appear on the axis. This is by design and is actually quite useful.
- snandy20118 years agoHelper IV
Hi Phil_Seamark sir,
Thanks for teaching me a wonderful concept. I had completely wrong idea about Month to date. It gives us cumulative total or running total of that particular month whatever month i am passing. I need to clear this concept more.
Thanks for this lesson.It was great learning.
Thanks,
snandy2011
- alexis_vasquez8 years agoFrequent Visitor
hi Phil_Seamark i have a similar question, but MTD function works giving the cumulative values in the month. I have a mtd function but it does not give me the accumulated value of the current month. the function gives the accumalted value of the last month. The correct amount should be 0 to the current month.
This is my code:
Monto_acumulado_cursesl = TOTALMTD(sum(General[Todo_lo_cursado_monto]);General[Fecha_curse_2];ALLSELECTED(General))