Skip to content

Commit 98b691c

Browse files
igorlukaninmarianore-muttdata
authored andcommitted
docs: Add CUBEJS_DAX_CREATE_DATE_HIERARCHIES env var
1 parent cd21a77 commit 98b691c

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
@@ -1230,6 +1230,14 @@ Number of seconds before session's SQL API security context will be invalidated.
12301230
| --------------- | ---------------------- | --------------------- |
12311231
| A valid integer number | `300` | `300` |
12321232

1233+
## `CUBEJS_DAX_CREATE_DATE_HIERARCHIES`
1234+
1235+
If `true`, the DAX API will expose time dimensions as calendar hierarchies.
1236+
1237+
| Possible Values | Default in Development | Default in Production |
1238+
| --------------- | ---------------------- | --------------------- |
1239+
| `true`, `false` | `true` | `true` |
1240+
12331241
## `CUBEJS_TELEMETRY`
12341242

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

0 commit comments

Comments
 (0)