0
0
Power BIbi_tool~8 mins

TOTALYTD, TOTALQTD, TOTALMTD in Power BI - Dashboard Guide

Choose your learning style9 modes available
Dashboard Mode - TOTALYTD, TOTALQTD, TOTALMTD
Business Question

How can we see sales totals for the year-to-date, quarter-to-date, and month-to-date to understand recent sales trends?

Sample Data
DateSales
2024-01-10100
2024-02-15200
2024-03-20150
2024-04-05300
2024-04-25250
2024-05-10400
2024-05-20350
Dashboard Components
  • KPI Card: Total Sales Year-to-Date (YTD)
    Formula:
    Total Sales YTD = TOTALYTD(SUM(Sales[Sales]), Sales[Date])
    Result: 1750 (sum of all sales from 2024-01-01 to 2024-05-20)
  • KPI Card: Total Sales Quarter-to-Date (QTD)
    Formula:
    Total Sales QTD = TOTALQTD(SUM(Sales[Sales]), Sales[Date])
    Result: 1300 (sum of sales in Q2 2024: 300 + 250 + 400 + 350)
  • KPI Card: Total Sales Month-to-Date (MTD)
    Formula:
    Total Sales MTD = TOTALMTD(SUM(Sales[Sales]), Sales[Date])
    Result: 750 (sum of sales in May 2024: 400 + 350)
  • Line Chart: Sales Over Time
    X-axis: Sales[Date]
    Y-axis: SUM(Sales[Sales])
    Shows sales trend by date
Dashboard Layout
+---------------------------+---------------------------+
| Total Sales YTD (1750)    | Total Sales QTD (1300)    |
+---------------------------+---------------------------+
| Total Sales MTD (750)     |                           |
+---------------------------+---------------------------+
|                           Line Chart: Sales Over Time                           |
+-----------------------------------------------------------------------------+
Interactivity

The dashboard includes a date slicer filter. When you select a date range, all KPI cards and the line chart update to show sales totals and trends only within the selected dates. This helps focus on specific periods.

Self Check

If you add a filter to show only sales from April 2024, which components update and what are their new values?

  • Total Sales YTD: 550 (300 + 250)
  • Total Sales QTD: 550 (300 + 250)
  • Total Sales MTD: 550 (300 + 250)
  • Line Chart: shows sales points only in April 2024
Key Result
Dashboard showing sales totals year-to-date, quarter-to-date, and month-to-date with a sales trend line chart.