Loading
About Salesforce Data 360
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 Calculated Insight Using SQL

          Create a Calculated Insight Using SQL

          Write SQL expressions to create your metrics and dimensions from mapped objects and fields. You can create a calculated insight in Data 360 using SQL.

          Required Editions

          Available in: All Editions supported by Data 360. See Data 360 edition availability.
          User Permission Sets Needed
          To create calculated insights:

          Permission set:

          • Data Cloud Architect

          DMO names are case-sensitive for calculated insights. When creating a calculated insight with SQL, verify that the DMO references match the casing found in the API name. This can be confirmed by reviewing the Object API Name column on the Data Model tab.

          1. In Data Cloud, go to the Calculated Insights tab, and click New.
          2. From the Data Space dropdown, select a data space.
            You can use only the data spaces that you have access to. Only the objects that are included in the data space are available to create a calculated insight.
          3. Click Calculated Insight.
          4. Click Use SQL Authoring and click Next.
          5. Enter the calculated insight name.
            The Calculated Insight API Name field is auto-filled.
          6. Enter the new insight SQL query expression.
            The SQL statement character limit is 131,021.
            1. When your insight includes currency measures, you must use the TRY_CONVERT_CURRENCY function.
            1. Use the NOW function to define a relative time window and the SECOND_ADD and SECOND_ADD functions to create more granular time period logic. See SQL Functions for Insights.
          7. To check whether your SQL expression is valid, click Check Syntax.
            If it isn’t valid, you can’t continue.
            Create a Calculated Insight Using SQL
          8. Click Activate.
          9. From the Schedule dropdown, select a schedule.
          10. Select the start date and time of the schedule.
          11. Click Enable.

          The calculated insight appears on the record home page.

           
          Loading
          Salesforce Help | Article