Date Dataset
A Date dataset is a dataset in the logical data model(LDM) that represents DATE
/ TIMESTAMP
columns in your database. The Date dataset helps you manage time-based data and enables aggregation at the day, week, month, quarter, and year level.
When a relationship exists between a standard dataset and a Date dataset, the related foreign keys are mapped to the DATE
/ TIMESTAMP
columns.
You can share a Date dataset with multiple standard datasets and then slice the facts from those standard datasets by the dates from the Date dataset.
You can create multiple Date datasets and create relationships between these Date datasets and one standard dataset, for example:
- Date datasets:
Created
,Last Updated
- Standard dataset:
Tickets
containing two foreign keys,Created
andLast Updated
A Date dataset in the LDM is identified by the following visual object:
Granularity Levels in a Data Dataset
The Date datasets support the following categories of date/time granularity:
- Chronological
- Periodical
When used in the LDM, the Date dataset defines what levels of granularity can be used in your analytics and how the titles of the those levels should be presented.
Category | Granularity | Description |
---|---|---|
Chronological | Minute | Date and time with minute granularity (for example, 2021-04-16 12:34 ) |
Chronological | Hour | Date and time with hour granularity (for example, 2021-04-16 12 ) |
Chronological | Date | Date with day granularity (for example, 2021-04-16 ) |
Chronological | Week/Year | Week and year (for example, 2021-20 ) |
Chronological | Month/Year | Date with month granularity (for example, 2021-12 ) |
Chronological | Quarter/Year | Date with quarter granularity (for example, 2021-1 ) |
Chronological | Year | Date with year granularity (for example, 2021 ) |
Periodical | Minute of Hour | Generic minute of the hour (1-60 ) |
Periodical | Hour of Day | Generic hour of the day (0-23 ) |
Periodical | Day of Week | Generic day of the week (1-7 ) |
Periodical | Day of Month | Generic day of the month (1-31 ) |
Periodical | Day of Year | Generic day of the year (1-366 ) |
Periodical | Week of Year | Generic week (1-53 ) |
Periodical | Month of Year | Generic month (1-12 ) |
Periodical | Quarter of Year | Generic quarter (1-4 ) |