You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/pages/product/apis-integrations/mdx-api.mdx
+26-3Lines changed: 26 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,29 @@ directly to the upstream data source.
53
53
- If some queries still go to the upstream data source, it should respond with a
54
54
subsecond latency. Consider tuning the concurrency and quotas to achieve that.
55
55
56
+
### Date hierarchies
57
+
58
+
By default, the MDX API creates additional hierarchies for all [time dimensions][ref-time-dimensions] and organizing them in a separate folder called "Calendar" for each dimension.
59
+
This creates a Calendar hierarchy structure containing `Year`, `Quarter`, `Month`, `Week`, and `Day` levels, as well as Calendar Quarter of Year and Calendar Year hierarchies.
60
+
61
+
```
62
+
- Dimension Calendar:
63
+
- Year
64
+
- Quarter
65
+
- Month
66
+
- Week
67
+
- Day
68
+
- Dimension Calendar Quarter of Year:
69
+
- Quarter
70
+
- Dimension Calendar Year
71
+
- Year
72
+
```
73
+
74
+
These hierarchies are particularly useful in Excel because they allow you to filter your data without needing to drill down or expand all levels.
75
+
Additionally, you can combine Calendar Year or Calendar Quarter of Year as filters while placing other dimensions on the axis.
76
+
77
+
You can set the `CUBE_MDX_CREATE_DATE_HIERARCHIES` environment variable to `false` to disable this behavior.
78
+
56
79
### Measure format
57
80
58
81
The MDX API respects the [`format` parameter][ref-measure-format] of measures so that the
@@ -94,7 +117,7 @@ views:
94
117
95
118
For historical reasons, the syntax shown above differ from how
96
119
[hierarchies][ref-hierarchies] are supposed to be defined in the data model.
97
-
This is going to be harmonized in the future.
120
+
This is going to be harmonized in the future.
98
121
99
122
</InfoBox>
100
123
@@ -185,7 +208,7 @@ views:
185
208
186
209
For historical reasons, the syntax shown above differ from how
187
210
[folders][ref-folders] are supposed to be defined in the data model.
188
-
This is going to be harmonized in the future.
211
+
This is going to be harmonized in the future.
189
212
190
213
</InfoBox>
191
214
@@ -203,4 +226,4 @@ Authentication and authorization work the same as for the [SQL API](/product/api
If `true`, the [MDX API][ref-mdx-api] will automatically create additional hierarchies for all [time dimensions][ref-time-dimensions] and organize them in a separate "Calendar" folder for each dimension.
1331
+
1332
+
| Possible Values | Default in Development | Default in Production |
0 commit comments