Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion docs/pages/product/data-modeling/concepts/calendar-cubes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ cube('fiscal_calendar', {

</CodeTabs>

### Joins

Calendar cubes are only useful when they are joined with other cubes in the data model.

<CodeTabs>
Expand Down Expand Up @@ -144,6 +146,11 @@ cube(`sales`, {

</CodeTabs>

When joining a calendar cube to other cubes, the following requirements must be met:
- The calendar cube's join dimension must be of [type `time`][ref-time-dimension] and
also be the [`primary_key`][ref-primary-key].
- The other cube's join dimension must also be of [type `time`][ref-time-dimension].

## Overriding time shifts

Calendar cubes can be used to override the default time shift behavior of [time-shift
Expand Down Expand Up @@ -464,4 +471,6 @@ expression in the generated SQL.
[ref-time-dimension]: /product/data-modeling/concepts#time-dimensions
[ref-granularities]: /product/data-modeling/reference/dimensions#granularities
[ref-cubes]: /product/data-modeling/reference/cube
[ref-cubes-calendar]: /product/data-modeling/reference/cube#calendar
[ref-cubes-calendar]: /product/data-modeling/reference/cube#calendar
[link-tesseract]: https://cube.dev/blog/introducing-next-generation-data-modeling-engine
[ref-primary-key]: /product/data-modeling/reference/dimensions#primary_key