Home / How-to / Model your data
Date dimensions
Give every fact a calendar to slice by year, quarter, month and fiscal year, and to compare periods with DAR-C.
The short version
- A Date Dimension makes a calendar: one row per day over a range, with columns such as Year, Quarter Name and Month Name.
- Type the range, or let By data take it from the first and last date in a grain.
- A fiscal year that starts in a month other than January adds five fiscal columns, and tells DAR-C where your year begins.
- The Date format changes only how the date shows. It stays a date, so facts still join on it.
- A second date, Ship Date, is a Role Playing Dimension of Order Date, with its own date format or fiscal year if it needs one.
In this guide
What a Date Dimension is
Every order has a date, and almost every question about orders is asked by date: this year against last, sales by month, the fiscal quarter so far. A date column on its own can't answer those without work in every visual. A Date Dimension does the work once.
It needs no source. You give it a range, and it makes one row for every day in it, with the calendar columns worked out: the year, the quarter, the month name, the week, the day of the week, and the fiscal year if yours doesn't start in January. A fact joins it on the date, and visuals group and filter by its columns. The named columns come in calendar order wherever they are grouped — January before April, Monday before Tuesday — as long as the column holding the number, such as Month beside Month Name, is in the dimension too.
A Date Dimension is also what DAR-C's time intelligence works on. Commands like SamePeriodPreviousYears() and FiscalYearToDate() need one. See Why DAR-C needs it.
If you use Power BI, this is the same idea as a date table.
Before you start
You need the Order Lines grain from Define the grain, with its Order Date and Ship Date columns in Dimension mode.
Both should be dates without a time of day, typed Date. A time of day stops an order line from matching its day. If yours are text, or dates with times, add a Change Type step to the grain or its prep and change them to Date, which drops the time.
Click Process all in the Services panel once, so the dates in Order Lines can be read.
This guide builds Order Date, the Date Dimension, and Ship Date, a Role Playing Dimension of it.
Build Order Date
This takes about five minutes.
- In the element list, click the + on the Dimensions row and pick Add Date Dimension. In Add element, type
Order Datein Name and click OK. The new dimension opens in the editor. - Under Mode, pick By data. In the box that appears, pick Order Lines, then its Order Date column. Only grains are offered.
- Leave Week / day numbering at ISO 8601, unless your weeks start on Sunday.
- Leave Starts in, under Fiscal year, at January for now.
- Leave Date format at its default, the computer's short date.
- Under Columns to include, untick any column you won't use. Keep Date ticked.
- Save the dimension, then click Process current in the Services panel. The Data tab shows one row per day, from the first order date to the last, and the unknown member.
- When you build the Sales fact, join it there. In the fact's Dimensions grid, find the Order Date row, pick Order Date under Dimension and Date under Dimension column. The column isn't picked for you here, because no column of the dimension is called Order Date.
Sales then has an Order Date Key on every row, and visuals can group its numbers by Year, Quarter Name, Month Name and the rest. Facts and measures covers the grid.
The date range
The Mode decides where the range comes from.
Date range: you set it.
- First date and Last date are the first and last days. A last date set before the first moves the first date to it, so the range is never backwards.
- No last date (use the current date when processed) ends the range on the day the dimension is processed. Use it when orders keep arriving. Last date is greyed out while it is ticked.
By data: the range runs from the earliest to the latest date in a date column of a grain. It follows your data as it grows, and it never holds days long before or after your orders.
Either way, cover every date your fact has. An order line whose date is outside the range finds no row to join, so it joins the unknown member and shows under "(blank)".
Date Key, the dimension's key, numbers each day. A day keeps its number when the range changes, so keys already in a fact stay right.
The columns
Columns to include lists every column, ticked. Untick the ones you don't need. Date Key can't be unticked, because it is the key.
Here is what each column holds for Saturday, March 14, 2026, with ISO 8601 numbering and a fiscal year starting in April:
| Column | Holds | Example |
|---|---|---|
| Date Key | The day's number in this dimension | A whole number |
| Date | The date itself | 2026-03-14, shown in the date format |
| Year, Year Name | The year | 2026, Year 2026 |
| Quarter, Quarter Name | The calendar quarter | 1, Q1 |
| Month, Month Name, Month Abbreviated | The month | 3, March, Mar |
| Week, Week Name | The week of the year | 11, Week 11 |
| Day, Day Name, Day Abbreviated | The day of the week | 6, Saturday, Sat |
| Fiscal Year, Fiscal Year Name | The fiscal year | 2026, FY 2026 |
| Fiscal Quarter, Fiscal Quarter Name | The fiscal quarter | 4, FQ4 |
| Fiscal Month | The month of the fiscal year | 12 |
| Is Today, Is Yesterday | Whether the date is today, or yesterday | True or False |
| Is Current Year, Is Previous Year | Whether the date is in this year, or last year | True or False |
A few things to know:
- Day is the day of the week, not the day of the month: 1 to 7.
- Month names and day names are in English.
- The Is columns are worked out when the dimension is processed. Today means the day of the last run, so process the dimension every day if you filter on them. Processing and schedules shows how to run it on a schedule.
- The fiscal columns are offered only when the fiscal year starts in a month other than January. See The fiscal year.
Week and day numbering
Week / day numbering sets how Week and Day count:
| Choice | Weeks start on | Week 1 is | Day |
|---|---|---|---|
| ISO 8601 | Monday | The week with the year's first Thursday | 1 for Monday to 7 for Sunday |
| US calendar | Sunday | The week with January 1 | 1 for Sunday to 7 for Saturday |
DAR-C's time intelligence counts weeks the same way.
The fiscal year
If your company's year doesn't start in January, set Starts in, under Fiscal year, to the month it does start in. January is marked as the calendar year.
Any other month does two things:
- It adds five columns to Columns to include: Fiscal Year, Fiscal Year Name, Fiscal Quarter, Fiscal Quarter Name and Fiscal Month.
- It tells DAR-C's
FiscalYearToDate()andFiscalQuarterToDate()where a fiscal year and a fiscal quarter begin.
A fiscal year is named by the calendar year it ends in. With a fiscal year starting in April, FY 2026 runs from April 1, 2025 to March 31, 2026:
| Date | Fiscal Year Name | Fiscal Quarter Name | Fiscal Month |
|---|---|---|---|
| April 1, 2025 | FY 2026 | FQ1 | 1 |
| December 15, 2025 | FY 2026 | FQ3 | 9 |
| March 14, 2026 | FY 2026 | FQ4 | 12 |
| April 1, 2026 | FY 2027 | FQ1 | 1 |
The calendar columns stay as they are, so you can show both: Year and Quarter Name for the calendar, Fiscal Year Name and Fiscal Quarter Name for the fiscal year.
The date format
Date format sets how the Date column shows: in charts' categories, tables and matrices, the Data tab, and the web and desktop viewers. The list starts with the default, the computer's short date, followed by 19 standard formats, each shown with how January 31, 2024 looks in it. The reference lists them.
The format is for display only. Date stays a date, so:
- the fact still joins on it,
- dates still sort in date order, not as text,
- and DAR-C still reads it as a date.
It changes only the Date column. The other columns keep their values.
Tip: A format without the day, such as
MMM yyyy, still leaves one value per day, each labelled Jan 2024. To show months, group by Year and Month Name instead.
A second date: Ship Date
Each order also has a Ship Date. It needs the same calendar, but as a role of its own, so a visual can show orders by order month and by ship month side by side. Build it as a Role Playing Dimension of Order Date.
- Click the + on the Dimensions row, pick Add Role Playing Dimension, name it
Ship Dateand click OK. - Set Source dimension to Order Date.
- Type
Shipin Role prefix. Columns to include lists every column of Order Date, renamed with the prefix: Ship Date, Ship Year, Ship Month Name and so on. Untick the ones you don't need, and keep Ship Date. - Save it. Process Order Date first, then Ship Date: the role copies Order Date's rows and keys.
- When you build the Sales fact, pick Ship Date under Dimension on the Ship Date row of its Dimensions grid. Dimension column fills in with Ship Date, because the names match.
Because the source is a Date Dimension, the role shows two more settings:
- Date format: As the Date Dimension shows it by default. Pick a format to show Ship Date its own way, for example
d MMM yyyy, while Order Date keeps the computer's short date. - Fiscal year starts: As the Date Dimension's by default. Pick a month to give the role a fiscal year of its own. DAR-C's fiscal commands then start there for calculations that use Ship Date. If Order Date has fiscal columns, the role's copies of them are worked out from that month too.
Filter by date
A role copies every day of Order Date. To keep only the days that ship dates cover, tick Filter by date and fill in the Filter by date group:
- Source date column: the column of Order Date to compare, here Date.
- By data (grain date column): Order Lines and its Ship Date column.
Ship Date then keeps the days from the first ship date to the last. The unknown member is always kept, so an order that hasn't shipped yet, with a blank Ship Date, still has a row to join.
Why DAR-C needs a Date Dimension
DAR-C's time intelligence moves a value in time: the previous month, the same month last year, the year to date. Every such calculation starts by naming the date to move along:
Query.SetDate([Order Date]);
Context.Value().SamePeriodPreviousYears().AggregateFact(Sum, Revenue).Return();Query.SetDate takes a Date Dimension the fact uses, or a Role Playing Dimension over one, such as Ship Date. A date column on the fact, or any other dimension, won't do. DAR-C needs the dimension because:
- It finds the period from the filters on the dimension's columns: a Year and a Month Name on a bar give that month.
- It reads each row's date from the dimension's Date column.
- Its fiscal commands start where the dimension's fiscal year starts, and its weeks follow the dimension's week numbering.
See Comparing over time in the DAR-C guide for the commands.
When something goes wrong
| What you see | What to do |
|---|---|
| All sales show under "(blank)" when grouped by Year | No order line matches a day. The grain's Order Date is text, or has a time of day. Change it to Date with a Change Type step, and check that the fact maps it to the Date column |
| Some sales show under "(blank)" | Their dates are outside the range. Move First date or Last date, or use By data |
| No fiscal columns under Columns to include | Starts in is January, the calendar year. Pick the month your fiscal year starts in |
| Is Today picks yesterday | It was worked out at the last run. Process the dimension every day |
| Last date is greyed out | No last date (use the current date when processed) is ticked |
| First date changed by itself | A last date set before the first moves the first date to it. Set the first date, then the last |
| Ship Date is empty or out of date | It copies Order Date's processed rows. Process Order Date first, then Ship Date |
| DAR-C says a name "isn't a date dimension" | Query.SetDate needs a Date Dimension or a Role Playing Dimension over one. Use [Order Date] or [Ship Date] |
| DAR-C says a name "isn't a dimension this fact uses" | Map the date in the fact's Dimensions grid first, then use the name it has there |
Reference
Date Dimension
| Setting | What it does |
|---|---|
| Mode | Date range sets the range by hand. By data takes it from a grain's date column |
| First date, Last date | The range, in Date range mode |
| No last date (use the current date when processed) | Ends the range on the day of each run |
| Week / day numbering | ISO 8601 or US calendar |
| Starts in, under Fiscal year | The month the fiscal year starts in. Any month but January adds the fiscal columns |
| Date format | How the Date column shows. Display only |
| Columns to include | The columns the dimension keeps. Date Key always stays |
Role Playing Dimension over a date
| Setting | What it does |
|---|---|
| Source dimension | The Date Dimension it plays, such as Order Date |
| Role prefix | The word put before every column name, such as Ship |
| Filter by date | Keeps only the days between the first and last date of a grain's date column |
| Date format | The role's own format, or As the Date Dimension shows it |
| Fiscal year starts | The role's own fiscal year start, or As the Date Dimension's |
| Columns to include | Include and Alias (output name) for each column |
Date formats
Every format is shown here with January 31, 2024. Month and day names are in English.
| Format | Shows |
|---|---|
MM/dd/yyyy |
01/31/2024 |
M/d/yyyy |
1/31/2024 |
MM/dd/yy |
01/31/24 |
dd/MM/yyyy |
31/01/2024 |
d/M/yyyy |
31/1/2024 |
dd/MM/yy |
31/01/24 |
yyyy-MM-dd |
2024-01-31 |
yyyy/MM/dd |
2024/01/31 |
yyyyMMdd |
20240131 |
MM-dd-yyyy |
01-31-2024 |
dd-MM-yyyy |
31-01-2024 |
dd.MM.yyyy |
31.01.2024 |
MMM d, yyyy |
Jan 31, 2024 |
MMMM d, yyyy |
January 31, 2024 |
d MMM yyyy |
31 Jan 2024 |
dddd, MMMM d, yyyy |
Wednesday, January 31, 2024 |
MMM yyyy |
Jan 2024 |
MMMM yyyy |
January 2024 |
yyyy-MM |
2024-01 |
Missing something?
Tell us what you were trying to do and what this guide didn't answer. We update it with every release.
Write to usWhat changed in this guide
- November 21, 2026: Reviewed against ConradBI 1.2.59.
- October 31, 2026: First edition, written for ConradBI 1.2.52.
