Power Query Problems

How to Build a Dynamic Excel Date Dimension with Power Query

Muhammad TalhaMuhammad Talha Nov 13, 2026 868 views

Question details

The user needs to build an Excel data model date dimension in Power Query that automatically extends through today, includes fiscal-year categories, supports a selectable month, and displays English month and weekday labels.

How to Build a Dynamic Excel Date Dimension with Power Query
Product
Microsoft Excel with Power Query
Device & OS
not provided
Scenario
The user is designing a calendar/date dimension for an Excel data model and wants it to refresh automatically without maintaining a manual end date.
Observed behavior
The date table should extend through the current date, provide fiscal-year categories, allow month selection, and return English month and weekday labels after refresh.
Before you start

Open the workbook that contains the data model and confirm that the Power Query Editor is available. Identify the fiscal-year start month and the desired English culture label before you build the query.

Solution 1Recommended

Create a Dynamic Date Dimension in the Power Query Editor

Use this method when you want a date table that automatically extends through today, includes fiscal-year categories, and supports selectable month and English labels.

This approach builds the calendar inside Power Query, so the table can be refreshed without changing a manual end date. You can also add a parameter or selection table later to make the month choice reusable.

1
Open Power Query Editor

In Excel, select any cell in a table or go to Data > Get Data > Launch Power Query Editor, then open or create a blank query for the date dimension.

2
Create a dynamic end date

In the formula bar or a custom column, enter DateTime.Date(DateTime.LocalNow()) so the calendar always ends at the current system date.

3
Generate the date list

Use List.Dates with a fixed start date and the dynamic end date, then choose To Table in the Transform tab to convert the list into a date column.

4
Add calendar and fiscal-year columns

On the Add Column tab, add Date > Year, Month, Month Name, Quarter, Weekday, and other required columns. For an April fiscal year, add a custom column such as if Date.Month([Date]) >= 4 then Date.Year([Date])+1 else Date.Year([Date]).

5
Add a selectable month parameter and English labels

Create a parameter or an Excel selection table for the month, then reference it in a filter or custom column. Use a culture value such as Date.MonthName([Date], "en-US") or Date.DayOfWeekName([Date], "en-US") so labels are always in English.

Create a Dynamic Date Dimension in the Power Query Editor
Refresh to extend automatically: After you close and load the query, use Data > Refresh All to extend the date table through today and update labels.
Free Microsoft Office alternative

Use WPS Office as a Free Excel Workbook Alternative for Date Models

If the dynamic date dimension depends on Microsoft Excel Power Query, WPS Office is a free, lightweight alternative for opening, editing, and sharing the resulting .xlsx workbook. It preserves Microsoft Office file compatibility and provides a familiar spreadsheet interface for everyday work.

  1. 1. Download WPS Office: Go to the official WPS Office website and click Download WPS Office Free to install the suite on your device.
  2. 2. Open the existing Excel workbook: Launch WPS Spreadsheets, click Menu > Open, and select the .xlsx workbook that contains your date table or data model.
  3. 3. Continue working in a familiar spreadsheet interface: Use the WPS ribbon and formatting tools to edit and share the workbook while keeping the original Microsoft Excel file format.
Opens and edits .xlsx workbooks that contain date dimensions and data modelsFull compatibility with Microsoft Excel .xlsx and other Office formatsFree, lightweight suite with a familiar ribbon-style spreadsheet interfaceEasy migration from Microsoft Excel without losing existing workbook dataAvailable on Windows, macOS, Android, and iOS for convenient access
microsoft office alternative - wps office

Frequently Asked Questions

How do I make my Power Query date table automatically end at today's date?

In Power Query Editor, use DateTime.Date(DateTime.LocalNow()) as the end date for List.Dates. This returns the current system date, so every refresh extends the table through today.

Can I set April as the fiscal year start in a Power Query date dimension?

Yes. Add a custom column with an if-then-else test such as if Date.Month([Date]) >= 4 then Date.Year([Date]) + 1 else Date.Year([Date]). This classifies dates from April through March into the same fiscal year.

How can I add a month selector to a Power Query date table?

Create a Power Query parameter or a small Excel selection table containing the month value, then reference it in a filter or calculated column. Loading the selector as a connection lets you change the month without editing the main query.

Why are my month and weekday names not displaying in English?

Power Query uses a culture value for date part labels. Use Date.MonthName([Date], "en-US") and Date.DayOfWeekName([Date], "en-US") so month and weekday names appear in English regardless of the local system locale.

Does WPS Office include Power Query for date dimensions?

No. Power Query is a Microsoft Excel feature. WPS Office can open and edit .xlsx workbooks, but use Microsoft Excel when you need to create or refresh Power Query date dimensions.