---
schema_version: "1"
id: f76aaad18918efc1d49bb82622e31060b8f8e058f3bc34a38970fc624727b41d
title: Clone a Query
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/analytics/264-0-0/bi_dashboard_step_clone.md
canonical_url: https://help.salesforce.com/s/articleView?id=analytics.bi_dashboard_step_clone.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 4a6a49b68fa631f033ed97e29c1146fd97dd0a6cf607a6b908fc89a3b4fd5695
description: Clone a query to quickly create a query based on an existing one. Cloning is useful when you can reuse an existing query with just a few tweaks.
products:
  - CRM Analytics
  - Cross Cloud
release: "264"
---
# Clone a Query

Clone a query to quickly create a query based on an existing one. Cloning is useful when you can reuse an existing query with just a few tweaks.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-analytics-bi-264-0-0-production-enus/ec791473-f5b4-4f64-a656-9104f455d966/images/icon_note.png)

Note You can’t clone a SAQL query for a single compare table column or a custom query with user-defined values.

1. To open the queries panel, click an empty space in the dashboard canvas in the dashboard designer.
    
    ![Steps panel with steps organized into categories.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-analytics-bi-264-0-0-production-enus/ec791473-f5b4-4f64-a656-9104f455d966/bi/images/bi/bi_dashboards_steps_panel_step_organization.png)
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-analytics-bi-264-0-0-production-enus/ec791473-f5b4-4f64-a656-9104f455d966/images/icon_note.png)
    
    Note You can’t apply grayed-out queries to widgets. But you can clone them and view their properties.
2. To show all queries, select **All** in the Show field.
3. Hover over the query that you want to clone, and then click the down arrow.
    
    ![Step actions menu in the steps panel.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-analytics-bi-264-0-0-production-enus/ec791473-f5b4-4f64-a656-9104f455d966/bi/images/bi/bi_dashboards_step_panel_down_arrow.png)
4. Select **Clone**.
    
    The query opens in the lens, where you can easily modify it. If the query was created using SAQL, the clone opens in the SAQL editor instead.
5. Edit the query label.
    
    The default label has “Clone of “ prepended to the original query label
6. Make your changes to the clone.
7. Click **Done**.
    
    CRM Analytics adds the query to the query panel, making it available for use by other widgets in the dashboard.
8. Save the dashboard.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-analytics-bi-264-0-0-production-enus/ec791473-f5b4-4f64-a656-9104f455d966/images/icon_note.png)

Note When you clone a query and edit its SAQL, the resulting JSON doesn’t always reflect the functions applied to measures. After you run and save the SAQL, the function is changed to `count`. For example, if the original query contained this `measures` array:

```
"query": {
        "measures": [
        ["max","DailyActiveUsers"]
        ]
      }
      
```

and the SAQL was edited, run, and saved, the updated JSON contains this `measures` array instead:

```
"query": {
        "measures": [
        ["count","*","max_DailyActiveUsers"]
        ]
      }
    
```

This discrepancy has no effect on the data viewed in the dashboard.