How to Work with Dates Using Power Query in Excel
Power Query makes it easier to clean, transform and analyze date data in Excel. You can use it to change date formats, split dates into parts, create date tables and build dynamic reporting models.
Table of Contents
Why dates matter in Power Query
Dates are common in sales data, finance reports and dashboards. Power Query helps you turn raw date values into useful columns such as year, month, quarter and day of week. This makes filtering and reporting much easier.
Check the date type
Before doing any date work, make sure the column is set to the correct data type. If Power Query reads a date as text, date functions may not work correctly.
- Open your data in Power Query Editor.
- Select the date column.
- Go to the Transform tab.
- Choose Date as the data type if needed.
Common date tasks
1. Extract year, month and day
You can split one date into separate columns. This is useful when you want to group or filter by year, month, or day.
Date.Year([Date])
Date.Month([Date])
Date.Day([Date])
2. Create a quarter column
Quarters help with monthly and seasonal analysis. You can use the quarter number to group dates into Q1, Q2, Q3, and Q4.
"Q" & Number.ToText(Date.QuarterOfYear([Date]))
3. Get the day name
This is useful when you want to see patterns by weekday.
Date.ToText([Date], "dddd")
4. Add month name
A month name is easier to read than a month number in many reports.
Date.ToText([Date], "MMMM")
Create a date table
You can also build a complete date table in Power Query. A date table helps with time-based analysis, charts and pivot tables.
Use Date.Add functions
Power Query also includes functions that let you add days, weeks, months or years to a date.
Date.AddDays([Date], 7)
Date.AddMonths([Date], 3)
Date.AddYears([Date], 1)
Practical examples
- Use
Date.Yearto group sales by year. - Use
Date.Monthto compare monthly trends. - Use
Date.ToTextto show readable month names. - Use
Date.AddDaysto calculate due dates.
Tips for working with dates
- Always verify that Power Query recognizes your dates as true date values.
- Use separate columns for year, month and quarter when building reports.
- Keep a date table if you plan to build dashboards or time intelligence reports.
- Use clear column names so your model is easy to read.


