Skip to content

Commit 29f80c9

Browse files
committed
docs: Add CUBEJS_DAX_CREATE_DATE_HIERARCHIES env var
1 parent a4d48a0 commit 29f80c9

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

docs/pages/product/apis-integrations/dax-api.mdx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ To enable or disable the DAX API on a specific deployment, go to <Btn>Settings</
4343
in the Cube Cloud sidebar, then <Btn>Configuration</Btn>, and then toggle the
4444
<Btn>Enable DAX API</Btn> option.
4545

46+
By default, the DAX API exposes all [time dimensions][ref-time-dimensions] as calendar
47+
hierarchies. You can set the `CUBEJS_DAX_CREATE_DATE_HIERARCHIES` environment
48+
variable to `false` to disable this behavior.
49+
4650
## Authentication
4751

4852
The DAX API supports the user name and password authentication method.
@@ -55,12 +59,6 @@ The DAX API works only with [views][ref-views], not cubes.
5559

5660
</InfoBox>
5761

58-
{/*
59-
60-
TODO
61-
62-
*/}
63-
6462
### Connection methods
6563

6664
Power BI provides [three methods][link-powerbi-connection] to connect to data
@@ -84,4 +82,5 @@ it removes the benefits of using a semantic layer.
8482
[ref-sql-api]: /product/apis-integrations/sql-api
8583
[ref-ref-dax-api]: /product/apis-integrations/dax-api/reference
8684
[ref-views]: /product/data-modeling/concepts#views
87-
[link-powerbi-connection]: https://learn.microsoft.com/en-us/power-bi/connect-data/service-live-connect-dq-datasets
85+
[link-powerbi-connection]: https://learn.microsoft.com/en-us/power-bi/connect-data/service-live-connect-dq-datasets
86+
[ref-time-dimensions]: /product/data-modeling/concepts#time-dimensions

docs/pages/reference/configuration/environment-variables.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,6 +1210,14 @@ Number of seconds before session's SQL API security context will be invalidated.
12101210
| --------------- | ---------------------- | --------------------- |
12111211
| A valid integer number | `300` | `300` |
12121212

1213+
## `CUBEJS_DAX_CREATE_DATE_HIERARCHIES`
1214+
1215+
If `true`, the DAX API will expose time dimensions as calendar hierarchies.
1216+
1217+
| Possible Values | Default in Development | Default in Production |
1218+
| --------------- | ---------------------- | --------------------- |
1219+
| `true`, `false` | `true` | `true` |
1220+
12131221
## `CUBEJS_TELEMETRY`
12141222

12151223
If `true`, then send telemetry to Cube.

0 commit comments

Comments
 (0)