TOTALMTD and TOTALQTD in Power BI DAX
TOTALMTD and TOTALQTD accumulate a measure within the current month or quarter — same Date-table discipline as YTD, just a finer reset grain.
Chala mitrano! After YTD, managers ask for “this month so far” and “this quarter so far”. Why? Different meetings, different grains. How? We add TOTALMTD and TOTALQTD beside YTD on FreshBasket (fictional) dates. Short family reunion — keep labels honest.
Quick answer
Vertical family:
- Confirm YTD already works on a marked Date table.
Sales MTD = TOTALMTD ( [Total Sales], 'Date'[Date] ).Sales QTD = TOTALQTD ( [Total Sales], 'Date'[Date] ).- Cards or matrix: MTD, QTD, YTD together.
- Drill one month — MTD tracks month; YTD still year.
- Title visuals so readers never confuse grains.
TOTALMTD ( [Total Sales], 'Date'[Date] )
TOTALQTD ( [Total Sales], 'Date'[Date] )
Why MTD / QTD, rows in / number out
Same year, day grain inside February:
| Date | Amount |
|---|---|
| 1 Feb | 100 |
| 10 Feb | 40 |
| 20 Feb | 80 |
- Why MTD: “How is this month doing so far?”
- On 20 Feb, plain day sales might show 80.
- MTD expands from 1 Feb through 20 Feb. Rows in: all three. Number out: 220.
- On 10 Feb, MTD = 140 (100 + 40).
- Why QTD: same idea for the quarter window. Q1 resets at 1 Jan (calendar).
- YTD still runs the whole year. Same Date table. Different reset.
TOTALMTD accumulates within the current month under the date filter context.
मित्रांनो — TOTALMTD accumulates within the current month under the date filter context.
मित्रों — TOTALMTD accumulates within the current month under the date filter context.
What do I need before this guide?
Before and after (look at the tables first)
Before
आधी (Before)
पहले (Before)
After
नंतर (After)
बाद में (After)
TOTALMTD
Sales MTD =
TOTALMTD (
[Total Sales],
'Date'[Date]
)
- Resets when the month changes.
- Useful on day-level axes inside a month.
- A jump down on the 1st is a reset, not a bug.
TOTALQTD
TOTALQTD accumulates within the current quarter — sibling of MTD and YTD.
मित्रांनो — TOTALQTD accumulates within the current quarter — sibling of MTD and YTD.
मित्रों — TOTALQTD accumulates within the current quarter — sibling of MTD and YTD.
Sales QTD =
TOTALQTD (
[Total Sales],
'Date'[Date]
)
- Resets at quarter boundaries.
- Pair with Quarter on a slicer or hierarchy.
- Same relationship rules as YTD.
Family portrait
Family portrait: TOTALMTD / TOTALQTD / TOTALYTD — same pattern, three grains.
मित्रांनो — Family portrait: TOTALMTD / TOTALQTD / TOTALYTD — same pattern, three grains.
मित्रों — Family portrait: TOTALMTD / TOTALQTD / TOTALYTD — same pattern, three grains.
- MTD = month window.
- QTD = quarter window.
- YTD = year window.
- Same base measure, different calendars of accumulation.
Phone-bill analogy: MTD is this month’s bill so far. QTD is the quarter plan tracker. YTD is the year plan tracker.
Mistakes and calm fixes
| Symptom | Likely cause | Fix |
|---|---|---|
| MTD = YTD always | Wrong dates / grain | Check Date axis and relationships |
| Jump at month start | Expected | That is a reset, not a bug |
| Blank | Date table issue | Fix mark + relationship first |
| Misread by stakeholders | Vague titles | Label “Month to date” explicitly |
Ghabru naka 😅 — if YTD is broken, MTD will not magically heal it.
Ravindra Bagale's Tip
Many students put MTD and YTD on one card without labels. Readers invent stories. Name the measure Sales MTD / Sales YTD and mirror that in the visual title. Keep this in mind!
Ravindra Bagale's Tip – मराठी
बरेच students MTD आणि YTD एका card वर labels शिवाय ठेवतात. Readers स्वतः कथा बनवतात. Measure ला Sales MTD / Sales YTD नाव द्या आणि visual title मध्येही तेच दाखवा. हे लक्षात ठेवा!
Ravindra Bagale's Tip – हिंदी
बहुत students MTD और YTD एक card पर labels के बिना रखते हैं. Readers खुद कहानियाँ बनाते हैं. Measure का नाम Sales MTD / Sales YTD रखो और visual title में भी वही दिखाओ. ये याद रखो!
Practice task
- Add Sales MTD and Sales QTD.
- Build a page with MTD, QTD, YTD cards.
- Slice to one quarter; write what each card means.
- Change to day level for one month; watch MTD climb to 140 mid-month on a sample like above.
- Screenshot titles that a non-DAX manager would understand.
Got it? MTD resets monthly; QTD quarterly; YTD yearly. Same Date table. Next: last year and YoY %. Let's continue.
समजलं का? MTD resets monthly; QTD quarterly; YTD yearly. Same Date table. Next: last year and YoY %. Aata pudhe jaauya.
समझ में आया? MTD resets monthly; QTD quarterly; YTD yearly. Same Date table. Next: last year and YoY %. आगे बढ़ते हैं.
Frequently asked questions
What is TOTALMTD?
Month-to-date evaluation of an expression over a dates column.
What is TOTALQTD?
Quarter-to-date evaluation — accumulates from the start of the quarter.
Do I need DATESMTD?
There are DATES* siblings used with CALCULATE; TOTALMTD/TOTALQTD are the friendly wrappers.
MTD resets when?
When the month (in filter context) changes — that is the point of MTD.
Same Date table as YTD?
Yes — one marked Date table for the whole time intelligence family.
Course lesson?
Time intelligence in the DAX chapter.