Loading
Salesforce now sends email only from verified domains. Read More
CRM Analytics
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Create a Query with the Query Editor

          Create a Query with the Query Editor

          Use the query editor to create or customize SAQL or SOQL queries. The query editor gives you additional flexibility over queries created by widget wizards or in the chart and table modes of the lens.

          Note
          Note If you modify a query using the query editor, you can no longer add dimensions, measures, and filters if you switch back to the table or chart view. However, you can still change the visualization parameters.
          1. To open the queries panel, click an empty space in the dashboard canvas in the dashboard designer.
            The steps panel shows the steps defined in the dashboard.
          2. Click Create Query.
            The Select a Dataset screen shows a list of all fields in the dataset.
          3. Click Dataset for a CRM Analytics dataset or Salesforce Direct for a Salesforce object.
          4. Select the dataset or Salesforce object that contains the data that you want to include in the query. Enter the name in the search box if your data source isn’t easy to find.
            The lens appears showing the default measure, Count of Rows.
            The explorer shows Count of Rows, by default, after you select a dataset.
          5. In the lens, click Untitled Query and enter the query label.
            CRM Analytics creates the query ID from the label. After you create the query, you can’t change the query ID. CRM Analytics refers to queries by their ID so dashboards don’t break if you change the labels.
          6. To write a custom SAQL or SOQL query, click SAQL Mode button.
            The query editor appears, showing the code for the current query.
            SAQL Editor
          7. Edit the query as needed.
            For SAQL, the editor provides contextually smart, auto-completion suggestions. For more information about SAQL queries, see the CRM Analytics SAQL Developer Guide.
          8. Click Run Query to validate the query.
            The Done button becomes active if the query is valid.
          9. Click Done.
            CRM Analytics adds the query to the query panel, making it available for use by other widgets in the dashboard.
          10. Save the dashboard.
           
          Loading
          Salesforce Help | Article