diff --git a/explore-analyze/_snippets/import-discover-query-controls-into-dashboard.md b/explore-analyze/_snippets/import-discover-query-controls-into-dashboard.md index c604d248f9..076f0a282d 100644 --- a/explore-analyze/_snippets/import-discover-query-controls-into-dashboard.md +++ b/explore-analyze/_snippets/import-discover-query-controls-into-dashboard.md @@ -1,4 +1,8 @@ -To add a Discover query to a dashboard in a way that preserves the [controls created from Discover](/explore-analyze/discover/try-esql.md#add-variable-control) and also adds them to the dashboard, do as follows: +To add the results of your Discover explorations to a dashboard in a way that preserves the [controls created from Discover](/explore-analyze/discover/try-esql.md#add-variable-control) and also adds them to the dashboard, you have two methods: + +**Method 1: Adding the Discover session's results** + +This method allows you to add the result table of your Discover {{esql}} query to any dashboard. 1. Save the {{esql}} query containing the variable control into a Discover session. If your Discover session contains several tabs, only the first tab will be imported to the dashboard. @@ -10,8 +14,17 @@ To add a Discover query to a dashboard in a way that preserves the [controls cre A new panel appears on the dashboard with the results of the query along with any attached controls. -![Importing Discover controls into a dashboard](/explore-analyze/images/import-discover-control-dashboard.png " =40%") +![Importing Discover session with controls into a dashboard](/explore-analyze/images/import-discover-control-dashboard.png " =40%") + +**Method 2: Adding the Discover visualization** {applies_to}`serverless:` {applies_to}`stack: ga 9.3` + +This method allows you to add the visualization of your Discover {{esql}} query to any dashboard. + +1. Next to the Discover visualization, select {icon}`save` **Save visualization**. + + ![Importing Discover visualization with controls into a dashboard](/explore-analyze/images/save-discover-viz-to-dashboard.png " =70%") + +1. Select the dashboard to add the visualization to. You can choose an existing dashboard or create one. + +The selected dashboard opens. It now includes a new panel that shows the visualization imported from Discover. Existing controls from the initial query in Discover are also added. You can find them at the top of the dashboard. -:::{note} -When you add a visualization to a dashboard using the {icon}`save` **Save visualization** option, controls are not added to the dashboard. -::: \ No newline at end of file diff --git a/explore-analyze/images/save-discover-viz-to-dashboard.png b/explore-analyze/images/save-discover-viz-to-dashboard.png new file mode 100644 index 0000000000..8743d31443 Binary files /dev/null and b/explore-analyze/images/save-discover-viz-to-dashboard.png differ