diff --git a/docs-mintlify/docs/explore-analyze/workbooks/calculated-fields.mdx b/docs-mintlify/docs/explore-analyze/workbooks/calculated-fields.mdx index c0ba31b89f080..9eb179ef4d603 100644 --- a/docs-mintlify/docs/explore-analyze/workbooks/calculated-fields.mdx +++ b/docs-mintlify/docs/explore-analyze/workbooks/calculated-fields.mdx @@ -103,13 +103,18 @@ opens a bucket that includes its lower bound and excludes the upper one, and two open-ended buckets are added at the edges—so `0, 18, 25` yields `< 0`, `[0, 18)`, `[18, 25)`, `>= 25`, and no row is dropped. **Label style** renders a bucket as `[10, 20)`, `>= 10 and < 20`, or `10 to 19`; the last is offered only while every -boundary is a whole number. Rows where the dimension is `NULL` are reported as -`Unknown`. +boundary is a whole number. Choose **Custom** to type your own label for each +bucket instead. + +By default, rows where the dimension is `NULL` get their own label (**Unknown**, +editable). Turn off **Label empty values separately** to fold them into the last +bucket instead. **Value groups** collect the dimension's values into named sets: pick values, name the group, and choose **Add group**. A value belongs to one group at a time. Whatever you did not pick—including empty values—falls under **Everything else**, -which defaults to `Other`. +which defaults to `Other`. Turn off **Group remaining values** to return `NULL` +for unpicked and empty values instead. Bucket labels carry their position as a prefix (`1.`, `2.`, zero-padded past nine buckets) so that sorting the column sorts it by value rather than alphabetically, diff --git a/docs-mintlify/docs/integrations/dbt.mdx b/docs-mintlify/docs/integrations/dbt.mdx index 9356eef520aad..d94bdcc766631 100644 --- a/docs-mintlify/docs/integrations/dbt.mdx +++ b/docs-mintlify/docs/integrations/dbt.mdx @@ -672,6 +672,27 @@ Each push creates exactly two new files: from the cube's joins (only to targets that originated in dbt), and the cube's measures preserved under `meta.cube.measures` for context. +## Author dbt models from Analytics Chat + + + +Authoring dbt models from Analytics Chat is currently in preview, and its behavior may +still change. Reach out to the [Cube support team](/admin/account-billing/support) to +activate this feature for your account. + + + +Ask [the agent](/docs/explore-analyze/analytics-chat) to create or update a dbt +model — for example, "turn this cube into a dbt model" or "add a `region` column to the +`orders` dbt model." The agent opens a private **dbt workspace**: a live sandbox scoped +to that model, where it reads the existing model and YAML files, drafts or edits the +SQL, runs `dbt` to validate the change, and iterates until it compiles. Once you +confirm, it publishes the result — a pull request or a direct commit, per your +[delivery mode](#enable-push) — back to your dbt repository. + +This shares its enablement with [dbt push](#push-cubes-to-dbt): activating one activates +the other, and a model authored from chat is delivered the same way a pushed cube is. + ## Limitations - **Supported warehouses:** Snowflake, Amazon Redshift, PostgreSQL, Google diff --git a/docs-mintlify/docs/integrations/google-sheets.mdx b/docs-mintlify/docs/integrations/google-sheets.mdx index 54f03dae5493d..72ebca8a02dfc 100644 --- a/docs-mintlify/docs/integrations/google-sheets.mdx +++ b/docs-mintlify/docs/integrations/google-sheets.mdx @@ -80,7 +80,11 @@ Google Cloud for Sheets works only with [views][ref-views], not cubes. Click on members to add them to **Rows** and **Measures**. If needed, drag dimensions from **Rows** to **Columns**. Click on the funnel buttons to add members to **Filters**. Click on **×** to -remove members from a query. +remove members from a query. Drag measures within the **Measures** pane to +reorder them in the output. When the pivot has column dimensions, a +**Measure position** setting controls whether measures nest **After columns** +(the default — each column value gets its own set of measures) or +**Before columns** (each measure spans every column value). diff --git a/docs-mintlify/docs/integrations/mcp-server.mdx b/docs-mintlify/docs/integrations/mcp-server.mdx index e69485ee866b4..6af84382d41f1 100644 --- a/docs-mintlify/docs/integrations/mcp-server.mdx +++ b/docs-mintlify/docs/integrations/mcp-server.mdx @@ -244,6 +244,14 @@ work together. Call `searchDataModel` before `runQuery` to find exact view and member names rather than guessing them. +Pass an optional `branchName` to `runQuery` to query a dev branch's model — the one +returned by `startDataModelEdit` — instead of the deployed model, so you can verify an +edit before it's committed. The response reports the branch it actually queried +(`null` for the deployed model), which never just echoes the argument back. Keep +`branchName` identical across paginated calls: `runQuery` re-issues the whole query for +each page, so dropping it on a later page silently switches that page to the deployed +model. + ### Dashboard authoring These tools build [workbooks][ref-workbooks] and [dashboards][ref-dashboards] diff --git a/docs-mintlify/docs/integrations/microsoft-excel.mdx b/docs-mintlify/docs/integrations/microsoft-excel.mdx index cb658fb1303b7..79cc0845281cd 100644 --- a/docs-mintlify/docs/integrations/microsoft-excel.mdx +++ b/docs-mintlify/docs/integrations/microsoft-excel.mdx @@ -88,7 +88,11 @@ Cube Cloud for Excel works only with [views][ref-views], not cubes. Click on members to add them to **Rows** and **Measures**. If needed, drag dimensions from **Rows** to **Columns**. Click on the funnel buttons to add members to **Filters**. Click on **×** to -remove members from a query. +remove members from a query. Drag measures within the **Measures** pane to +reorder them in the output. When the pivot has column dimensions, a +**Measure position** setting controls whether measures nest **After columns** +(the default — each column value gets its own set of measures) or +**Before columns** (each measure spans every column value). diff --git a/docs-mintlify/embedding/iframe/dashboards.mdx b/docs-mintlify/embedding/iframe/dashboards.mdx index 905fd42e34e74..4d865a78104b9 100644 --- a/docs-mintlify/embedding/iframe/dashboards.mdx +++ b/docs-mintlify/embedding/iframe/dashboards.mdx @@ -77,20 +77,22 @@ This works on both regular and published (embedded) dashboards. The filter is only applied if a matching filter widget for that dimension already exists on the dashboard. -## Allow CSV export +## Allow chart export By default, embedded dashboards do not expose a download action on individual -widgets. To let viewers download a chart widget's data as a CSV file, add the -`allowExport=true` query parameter to the embed URL: +widgets. To let viewers export a chart widget, add the `allowExport=true` query +parameter to the embed URL: ```text https://your-tenant.cubecloud.dev/embed/dashboard/YOUR_DASHBOARD_PUBLIC_ID?session=YOUR_SESSION_ID&allowExport=true ``` -When enabled, each chart widget's ⋮ menu shows a **Download as CSV** action. The -CSV is generated client-side from the data already loaded into the widget, so no -additional query is issued. The parameter is opt-in — omit it (the default) to -keep the download action hidden. +When enabled, each chart widget's ⋮ menu shows **Download as CSV**, **Download as +PNG**, and **Download as PDF** actions. CSV is generated client-side from the data +already loaded into the widget; PNG and PDF are [server-rendered +snapshots](/docs/explore-analyze/dashboards#download-as-png-or-pdf), the same as +on a non-embedded dashboard. The parameter is opt-in — omit it (the default) to +keep the download actions hidden. ## Show or hide the AI chat