Customize Date Dimensions

You can customize date dimensions members, hierarchies and properties to add flexibility to time hierarchies and make them more suited to your planning and analytical needs.

Time hierarchies help you plan and analyze data along an individual time hierarchy. They also allow for company specific fiscal year variants.

In this section, you will learn about the following topics related to customizing date dimensions.

About User-Managed and System-Managed Date Dimensions

Date dimensions can be maintained manually or automatically by the application.

Leaving the management to the application means that the dimensions values are generated from the parameters within the Dimension Settings panel in the modeler, and in the model settings. Conversely, maintaining the date dimension manually allows you to edit the master data and manage all dimension members freely.

You can edit the dimension parameters just like you would with a standard date dimension. However, managing dimension members manually unlocks hierarchy management, the ability to create additional properties, and editing properties within the dimension view.

If you’ve set the date dimension to user-managed, you can edit the predefined hierarchies that come with the time granularity that are applied to the dimension.

About the Booking Behavior

You can select amongst two booking behaviors to decide how values are processed: Distribute Values, or Book to Unassigned.

Distributing values means that the application assigns and spreads values across all levels available within the hierarchy. Visually, within a table, values are distributed within each level of the default hierarchy in stories.

If values are booked to unassigned, the application creates an unassigned member in which all values are distributed. Visually, within a table, values are distributed under an # member in stories. You can also see this in the modeler when switching to the grid view where "#" members are added to each property of the dimension, as illustrated in the image below. Note that for each property set with the day granularity, the member is shown as empty with no value.

If you delete the unassigned member, values are then automatically distributed.

For more information about the booking behavior, check out Disaggregation of Values During Data Entry.

Member Management

If the date dimension is user-managed, you can edit its members just like you would with any other generic dimension, and add additional members to the dimension both forward and backward in time using the Generate Additional Members option. It's also possible to add, edit and delete members manually within the grid view.

Maintain Properties in Date Dimensions

You can add properties to date dimensions and specify dates of interest for your reporting or planning purposes, and account for specific periods quickly, like Holidays, Easter or special sales periods for instance.

Within a hierarchy, each property you create is assigned to a semantic type. A semantic type is a time unit assigned to a property within the hierarchy: Year, Half-Year, Quarter, Month, Period, Week, Day, and Other.

The semantic type Other is reserved for additional properties that you want to attach to other properties as linked descriptions. In the example below, you can see the Month, Day, Week, and Month, Day properties used as descriptions and linked to their respective properties. In the Grid view and the Dimension Settings panel, you can identify ID , unique , and description properties thanks to their dedicated icons.

The unique property is generated automatically, and corresponds to the lowest level in the hierarchy. Being unique, there’s no possibility to create one or declare another property as unique, but you can delete it.

The ID property is defined according the dimension granularity and pattern settings. It can't be switched with another property, and its semantic type is locked. If needed, you can still edit its members and description.

The Date property is used for data import, currency conversion, uploading facts, and in stories to know what members are part of the current date dimension.

Linked descriptions are really valuable in stories for reporting purposes. If a hierarchy is used in charts and tables, you can see the actual description of a member rather than its ID. Like in the example below, we can see the month names rather than the month IDs.

In the Dimension Table panel, you can see the matching properties ordered by semantic type and grouped:

When creating properties and linking them as linked description to other properties, make sure that each member has a unique description to avoid errors within the modeler. If a member has multiple descriptions, the applications asks you to select which one should be used as default. It's then used to display values in the hierarchy node in stories, tables, member selector, etc… You can select a description in the Remove Duplicate Date Descriptions dialog.

Easter is never the same week from year to year, and if you’re working in sales, reporting on the Easter sales peak can be complex. Using additional properties, you can align the campaigns across the years using time series and make the comparison easier. Rather than trying to compare Easter sales with Easter being on different weeks, you can instead align the years with weeks leading up to Easter and the following weeks to have a single reference, and align the data points on a single timeline.

By flagging periods that are crucial to your business, you’ll be able to pinpoint them promptly and speed up your analysis.

Add Properties to a Date Dimension

Context

When working with user-managed date dimensions, you can add properties for specific members and then add them to time hierarchies.

Procedure

  1. In the modeler, click a date dimension to access the Dimension Settings panel.
  2. Within the Dimension Settings panel, scroll down to the Properties section and click .
  3. Give a unique ID and description to the property.
  4. Select a semantic type.

    A semantic type is a time unit assigned to a property within the hierarchy: Year, Half-Year, Quarter, Month, Period, Week, Day, and Other.

  5. Specify a data type.
  6. If you want to attach another property to the one you're creating as a description, select it in the Linked Description dropdown. Otherwise, leave it set to (None).
  7. Click Create.

Edit a Property

Procedure

  1. In the modeler, click a date dimension to access the Dimension Settings panel.
  2. Within the Dimension Settings panel, scroll down to the Properties section and click .
  3. Click Edit.
  4. Change the description, linked description or both.
  5. Click OK.

Delete a Property

Procedure

  1. In the modeler, click a date dimension to access the Dimension Settings panel.
  2. Within the Dimension Settings panel, scroll down to the Properties section and click .
  3. Click Delete.

Unlink a Property

Context

You can unlink properties that are attached to other properties as linked descriptions.

Procedure

  1. In the modeler, click a date dimension to access the Dimension Settings panel.
  2. Within the Dimension Settings panel, scroll down to the Properties section and click .
  3. Click Unlink.

About Time Hierarchies

You can create hierarchies so that they align with your planning and reporting needs, and shape the year so that it reflects your reporting structure.

The hierarchies you can build depend on the properties available in the date dimension. For user-managed dimensions, you must have at least one hierarchy.
Once all properties have a semantic type assigned, you can add them as levels within the hierarchy. Make sure to follow these guidelines:
  • The hierarchy has the mandatory Year semantic type as the highest level.

  • The semantic types within the hierarchy are ordered from the biggest to the smallest time unit. For example, Month must be below Quarter, and above Week.

  • Each semantic type within the hierarchy is only used once, except for the Other semantic type.

  • If the hierarchy uses the semantic type Month, do not include the semantic type Period, and vice versa.

  • The lowest level of the hierarchy is the ID property if there is one. Otherwise, it must be a unique property.

  • Description properties cannot be used in the hierarchy.

You can model the hierarchies and shift quarters for example. Below is an example, where March rolls up to Q2, June rolls up to Q3, and September rolls up to Q4.

Month

Standard Hierarchy

Custom Hierarchy

January

Q1

Q1

February

Q1

Q1

March

Q1

Q2

April

Q2

Q2

May

Q2

Q2

June

Q2

Q3

July

Q3

Q3

August

Q3

Q3

September

Q4

Q3

October

Q4

Q4

November

Q4

Q4

December

Q4

Q4

Here’s another example with the same quarter shifts, and an additional period rolling up to Q4.

Month

Custom Hierarchy

P1

Q1

P2

Q1

P3

Q2

P4

Q2

P5

Q2

P6

Q3

P7

Q3

P8

Q3

P9

Q3

P10

Q4

P11

Q4

P12

Q4

P13

Q4

Create a Time Hierarchy

Context

You can create additional time hierarchies and have them reflect you reporting structure. Hierarchies you create can be reused later in stories. Make sure you follow these guidelines:
  • The hierarchy has the mandatory Year semantic type as the highest level.

  • The semantic types within the hierarchy are ordered from the biggest to the smallest time unit. For example, Month must be below Quarter, and above Week.

  • Each semantic type within the hierarchy is only used once, except for the Other semantic type.

  • If the hierarchy uses the semantic type Month, do not include the semantic type Period, and vice versa.

  • The lowest level of the hierarchy is the ID property if there is one. Otherwise, it must be a unique property.

  • Description properties cannot be used in the hierarchy.

Procedure

  1. In the modeler, click a date dimension to access the Dimension Settings panel.
  2. Within the Dimension Settings panel, scroll down to the Hierarchies section and click .
  3. Give a unique ID and description to the property.
  4. Using the guidelines listed above, drag and drop the properties to the Levels section of the dialog to build the hierarchy.
  5. When you're done, click OK, or click Create Hierarchy to add another hierarchy and repeat these steps.

Plan on Data with Weekly Granularity

The week granularity allows you to refine date dimensions and expand the time hierarchies available.

Week Granularity

If you’re in the retail industry for instance, it’s highly possible that data is processed at a week level due to seasonality. With sales performance being highly seasonable, the week granularity helps you track and analyze that data precisely. It’s also highly beneficial if you’re responsible for staffing, need to plan special timely initiatives for specific weeks, organize replenishment work, manage weekly discounts,… Other use cases could be product launches, inventory receipts, weekly promotions, variance analyses,…

You can choose from two distinct week patterns and adapt your date dimension to your business case. With these patterns, data is stored data on weeks, and is then aggregated to months or quarters:
  • 445/454/544: splits a period (a quarter, typically), into sets of four weeks, four weeks, and five weeks. Each set represents a month. This rounds up to 52 weeks, just like in a typical calendar year.

  • 13x4: splits a year into 13 periods rather than 12 months, with each period being divided into sets of four weeks. This rounds up to 52 weeks, just like in a typical calendar year, with each period having the exact same number of weeks.

A 53rd week is automatically added to each pattern every five to six years.

These patterns are available in the Model Settings, via the Enable Week Settings toggle under the Time Settings tab. You can tune the week further and select the first day of the week, the first week of the year, and decide how you would like the month or period to be labeled. For period planning, you might want to show periods as P1-P12 rather than month names, especially if you add periods to a year.

Enable Week Granularity

Context

Enable the week granularity if you need to plan and store data at a week level.

Procedure

  1. Create a new model with measure, or open an existing one.
  2. Go to the Model Settings, and choose Date Settings.
  3. Enable the Enable Week Settings toggle to switch week settings on.
  4. Select a week pattern, the first day of the week, and the first week of the year.
  5. Back in the modeler, choose a date dimension and open the Dimension Settings panel.
  6. Choose the Granularity drop-down and select Week.
  7. Select a default hierarchy using the dedicated drop-down.

Restrictions for Time Hierarchies

This section lists restrictions for time hierarchies.

Formulas

  • The ResultLookup function is not supported for non-standard time periods such as week-level granularity and user-managed date dimensions.

  • The IF function is not supported for non-standard time periods such as week-level granularity and user-managed date dimensions.

  • The If and ResultLookup functions are only working if member is unique below a single parent. If the member is present under multiple parents, the formulas are invalid.

  • For the CAGR function, years must be integers. 2021.3 or YearOne, for instance, are invalid.

Date Range Restrictions

  • Hierarchies that include non-standard user-managed date dimensions (that use the semantic type Other) won't be available for date ranges.

  • You won't be able to edit the custom current date if you change to a hierarchy that doesn't include the granularity that was previously used. For example, you set a date based on Quarter and then choose a hierarchy that doesn't have Quarter. You can delete the custom current date, but you can't edit it.

  • When you have dates with no value, they will still be included in date range look back.

    For example, your user-managed date dimension has values for weekdays only, not weekends. Your lookback will include the weekend days.

Planning

  • If you are copy and pasting values in a table with a model that is using custom time hierarchies, only the overall values can be pasted to cells with different time hierarchies.

  • When creating copy rules for a copy step in data actions, copying to non-leaf target members on user-managed date dimensions is not supported at this time.

  • If you use a model with user-managed date dimensions to define the context of a calendar event, the filters of the date dimension won't be applied to the attached story.

Stories - Calculations and Other Features in Charts and Tables

  • The Difference From formula won't be supported for the initial release.

  • Variances don't work as expected for hierarchies that include non-standard user-managed date dimensions that use the semantic type “Other”. You will need to choose a hierarchy that uses only standard date dimensions.

Augmented Analytics (Smart Features)

  • Smart Insights is not supported for user-managed dimensions, or dimensions that support week granularity and/or week patterns to show users how data points change over time. Flexible date dimensions are supported for top contributor and calculation insights.

Mobile (iOS)

  • Stories containing custom date dimensions can be consumed on supported iOS devices.