Session 5 - Insights
Session 5 - Insights
Academy
Get Certified
Session 5 of 8
Insights
First, some logistics
Questions, answers and videos
sfdc.co/DCAcademyGuide
Forward Looking Statements
This presentation contains forward-looking statements about, among other things, trend analyses and statements regarding future events, future financial performance, anticipated growth, industry prospects,
environmental, social and governance goals, our strategies, expectation or plans regarding our investments, including strategic investments or acquisitions, our beliefs or expectations regarding our competition, our
intentions regarding use of future earnings or dividends, and the expected timing of product releases and enhancements. The achievement or success of the matters covered by such forward-looking statements
involves risks, uncertainties and assumptions. If any such risks or uncertainties materialize or if any of the assumptions prove incorrect, Salesforce’s results could differ materially from the results expressed or implied by
these forward-looking statements. The risks and uncertainties referred to above include those factors discussed in Salesforce’s reports filed from time to time with the Securities and Exchange Commission, including,
but not limited to: our ability to maintain security levels and service performance that meet the expectations of our customers, and the resources and costs required to avoid unanticipated downtime and prevent,
detect and remediate performance degradation and security breaches; the expenses associated with our data centers and third-party infrastructure providers; our ability to secure additional data center capacity; our
reliance on third-party hardware, software and platform providers; uncertainties regarding AI technologies and its integration into our product offerings; the effect of evolving domestic and foreign government
regulations, including those related to the provision of services on the Internet, those related to accessing the Internet, and those addressing data privacy, cross-border data transfers and import and export controls;
current and potential litigation involving us or our industry, including litigation involving acquired entities, and the resolution or settlement thereof; regulatory developments and regulatory investigations involving us or
affecting our industry; our ability to successfully introduce new services and product features, including any efforts to expand our services; the success of our strategy of acquiring or making investments in
complementary businesses, joint ventures, services, technologies and intellectual property rights; our ability to complete, on a timely basis or at all, announced transactions; our ability to realize the benefits from
acquisitions, strategic partnerships, joint ventures and investments, and successfully integrate acquired businesses and technologies; our ability to compete in the markets in which we participate; the success of our
business strategy and our plan to build our business, including our strategy to be a leading provider of enterprise cloud computing applications and platforms; our ability to execute our business plans; our ability to
continue to grow unearned revenue and remaining performance obligation; the pace of change and innovation in enterprise cloud computing services; the seasonal nature of our sales cycles; our ability to limit
customer attrition and costs related to those efforts; the success of our international expansion strategy; the demands on our personnel and infrastructure resulting from significant growth in our customer base and
operations, including as a result of acquisitions; our ability to preserve our workplace culture, including as a result of our decisions regarding our current and future office environments or remote work policies; our
dependency on the development and maintenance of the infrastructure of the Internet; our real estate and office facilities strategy and related costs and uncertainties; fluctuations in, and our ability to predict, our
operating results and cash flows; the variability in our results arising from the accounting for term license revenue products; the performance and fair value of our investments in complementary businesses through our
strategic investment portfolio; the impact of future gains or losses from our strategic investment portfolio, including gains or losses from overall market conditions that may affect the publicly traded companies within
our strategic investment portfolio; our ability to protect our intellectual property rights; our ability to maintain and enhance our brands; the impact of foreign currency exchange rate and interest rate fluctuations on our
results; the valuation of our deferred tax assets and the release of related valuation allowances; the potential availability of additional tax assets in the future; the impact of new accounting pronouncements and tax
laws; uncertainties affecting our ability to estimate our tax rate; uncertainties regarding our tax obligations in connection with potential jurisdictional transfers of intellectual property, including the tax rate, the timing of
transfers and the value of such transferred intellectual property; uncertainties regarding the effect of general economic, business and market conditions, including inflationary pressures, general economic downturn or
recession, market volatility, increasing interest rates, changes in monetary policy and the prospect of a shutdown of the U.S. federal government; the potential impact of financial institution instability; the impact of
geopolitical events, including the ongoing armed conflict in Europe; uncertainties regarding the impact of expensing stock options and other equity awards; the sufficiency of our capital resources; our ability to execute
our share repurchase program; our ability to comply with our debt covenants and lease obligations; the impact of climate change, natural disasters and actual or threatened public health emergencies; expected
benefits of and timing of completion of the restructuring plan and the expected costs and charges of the restructuring plan, including, among other things, the risk that the restructuring costs and charges may be
greater than we anticipate, our restructuring efforts may adversely affect our internal programs and ability to recruit and retain skilled and motivated personnel, our restructuring efforts may be distracting to employees
and management, our restructuring efforts may negatively impact our business operations and reputation with or ability to serve customers, and our restructuring efforts may not generate their intended benefits to the
extent or as quickly as anticipated; and our ability to achieve our aspirations, goals and projections related to our environmental, social and governance initiatives, including our ability to comply with emerging
corporate responsibility regulations.
September 8, 2023
Agenda
Process Overview
Q&A
Your Salesforce Team
Exam Outline
Exam Details
Data Consumption
integrations to source/target systems, etc. business intelligence tools.
Data Preparation
Data Ingestion Segmentation
Set up data streams bringing data into Data Turn mapped data into useful audiences or
Cloud from various supported sources and segments, to understand, target or analyze
applying necessary transformations customers at the unified level.
Transaction ID Client ID Transaction Date Amount Transaction ID Client ID Transaction Date Amount
Transaction ID Client ID Transaction Date Amount Transaction ID Client ID Transaction Date Amount
Transaction ID Client ID Transaction Date Amount Transaction ID Client ID Transaction Date Amount
Measures Measures are numerical data fields that represent quantitative values
It contain aggregated values of attributes,
like the total amount spent or average order amount.
Foreign Key A foreign key is a column in a relational database that provides a link between
data sources—for example, a customer ID number.
Supercharge Segmentation
Use calculated insights in Segment Builder to gain
deeper understanding of your customers
AWS S3 /
Transform
Segment
Activation Target
(SFMC, MCP, S3)
Streaming Insights
Calculate metrics on streaming data to trigger real time experiences
Webhook
Identity Enrichment
Real Time Rules Data
Resolution / Insights (Optional up to
Sources (Optional)
10 attributes) Actions
Mapping
Mulesoft
Send Email
Journey
Insights Use Cases
Practical Examples
1.
2.
3.
4.
5.
Personalized Messaging
1.
2.
3.
4.
5.
Casey’s is Reaping The Rewards
Anne
Affinity 1: Pizza Slice
Affinity 2: Dr Pepper
Affinity 3: Fountain Drink
Affinity 4: Juice
Affinity 5: Monster
Personalized Messaging
Data Cloud Insight
(Powered by MC Engagement)
Customer lifecycle metrics with Calculated Insights
Understand customers deeply with metrics at every stage of customer journey
Advocate
Attract Referral Rate, Social Mentions, Social
Views, Click Through Rates, OptIns, Share Rate, Active engagement rate,
Sentiment Score, Paid Media Impact Revenue Velocity
Nurture Loyalist
Time on Site, Conversion Rate Upsell Rate, Cross Sell Rate, Repeat
Purchase Rate, Loyalty scores
Convert Adopter
LTV, Churn Rate, NPS, Social
Online and Offline Sales, Click to
Engagement Rate, Customer Rank
Purchase Rate, Acquisition Cost
Engage
Advanced RFM, Repeat Purchase Rate,
Affinity Scores , Health Risk Scores
Behind the scenes
Technicalities and implementation considerations
Calculated Insights
Behind the scenes
Anatomy of a Calculated Insight
Quantitative Values
SELECT <Attributes>, <Aggregation[Measures]> e.g. LTV__c
Where you find CI in Attribute in segment
Segmentation UI
FROM <Data Model Object>
JOIN [Inner | Left | Right | Full] <Data Model Object> [Optional]
WHERE <predicate on rows> [Optional]
Qualitative Values
GROUP BY <columns[Dimensions]> e.g. CustomerID__c
Filter criteria in segment
100001 $1,000 cust101 2023-05-01 cust101 dc101 CRM dc101 Jeff Smith
100002 $2,000 cust101 2023-05-02 cust102 dc102 CRM dc102 Tracy Doe
100003 $5,000 cust102 2023-05-01 cust103 dc103 CRM
dc103 Pat Battle
100004 $8,000 cust103 2023-05-05 cust104 dc103 MC
100005 $7,000 cust104 2023-05-06
Let Join them, Why?
Joins “flatten” all the objects, now we can group and summarize
Sales Orders Unified Link Individual Unified Individual
Order Order Individual Unified Data First
Sold To Order Date ID Last Name
Number Total ID ID Source Name
100001 $1,000 cust101 2023-05-01 cust101 dc101 CRM dc101 Jeff Smith
100002 $2,000 cust101 2023-05-02 cust102 dc102 CRM dc102 Tracy Doe
100003 $5,000 cust102 2023-05-01 cust103 dc103 CRM
dc103 Pat Battle
100004 $8,000 cust103 2023-05-05 cust104 dc103 MC
100005 $7,000 cust104 2023-05-06
Joins
Order Number Order Total Sold To Order Date Unified ID Data Source First Name Last Name
100001 $1,000 cust101 2023-05-01 cust101 dc101 CRM dc101 Jeff Smith
100002 $2,000 cust101 2023-05-02 cust102 dc102 CRM dc102 Tracy Doe
100003 $5,000 cust102 2023-05-01 cust103 dc103 CRM
dc103 Pat Battle
100004 $8,000 cust103 2023-05-05 cust104 dc103 MC
100005 $7,000 cust104 2023-05-06
CI Output
custid__c LTV__c
dc101 $3,000
Exploring CI, Follow along - Row 3
Sales Orders Unified Link Individual Unified Individual
Order Order Individual Unified Data First
Sold To Order Date ID Last Name
Number Total ID ID Source Name
100001 $1,000 cust101 2023-05-01 cust101 dc101 CRM dc101 Jeff Smith
100002 $2,000 cust101 2023-05-02 cust102 dc102 CRM dc102 Tracy Doe
100003 $5,000 cust102 2023-05-01 cust103 dc103 CRM
dc103 Pat Battle
100004 $8,000 cust103 2023-05-05 cust104 dc103 MC
100005 $7,000 cust104 2023-05-06
CI Output
custid__c LTV__c
dc101 $3,000
dc102 $5,000
Exploring CI, Follow along - Row 4 & 5
Sales Orders Unified Link Individual Unified Individual
Order Order Individual Unified Data First
Sold To Order Date ID Last Name
Number Total ID ID Source Name
100001 $1,000 cust101 2023-05-01 cust101 dc101 CRM dc101 Jeff Smith
100002 $2,000 cust101 2023-05-02 cust102 dc102 CRM dc102 Tracy Doe
100003 $5,000 cust102 2023-05-01 cust103 dc103 CRM
dc103 Pat Battle
100004 $8,000 cust103 2023-05-05 cust104 dc103 MC
100005 $7,000 cust104 2023-05-06
CI Output
custid__c LTV__c
dc101 $3,000
dc102 $5,000
dc103 $15,000
Calculated Insight Example
Lifetime Value (Total Customer Spend) Metrics we are
calculating
SELECT
SUM( SALESORDER__dlm.order_total__c ) as LTV__c,
UnifiedIndividual__dlm.Id__c as custid__c
FROM Dimensions
SALESORDER__dlm Data Model Object we’re aggregating
JOIN
UnifiedLinkIndividual__dlm Join with Unified Link Individual DMO
ON
SALESORDER__dlm.SoldTo__c = UnifiedLinkIndividual__dlm.IndividualId__c
JOIN
UnifiedIndividual__dlm Common keys tying the
Join with Unified Individual DMO
objectscustid__c
together LTV__c
ON
UnifiedLinkIndividual__dlm.UnifiedIndividualId__c
dc101 $3,000
= UnifiedIndividual__dlm.Id__c
GROUP BY dc102 $5,000
custid__c Group by each customer dc103 $15,000
Using the Insights Builder
Visual interface for business users to declaratively build metrics
Action Rules
(optional)
Send Email
Mobile SDK
Chatter Post
Streaming Data or
Data Action
Streaming Insights
Web SDK In App - Mobile Notification
Desktop Notification
MC Personalization
Slack Message
Enrichment
(optional)
I want to send a Push Notification with a
coupon to any customer entering a store who
visited product information pages on our site
more than 3 times in last 24 hours
Understanding Streaming Insights
Aggregates
Min: 5 min
Max: 24 hours
Supported Data
Profile & Engagement events (all sources) Engagement events from “real-time sources”
Sources
Do not update periodically after Performs complex calculations Handles micro-batches of few
ingestion usually needing large historic records. Updated regularly (12/24h)
(bad example: days since…) data.
1. What are the two minimum requirements needed when using the Visual Insights
Builder to create a Calculated Insight?
a. WHERE clause is required
b. At least two objects to join
c. At least one dimension
d. At least one measure
Knowledge Check - Answer
1. What are the two minimum requirements needed when using the Visual Insights
Builder to create a Calculated Insight?
a. WHERE clause is required
b. At least two objects to join
c. At least one dimension ✅
d. At least one measure ✅
Help Article
Knowledge Check
2 Complete Activities
● Module: Data Cloud Insights
● Module : Data Cloud Insights Using SQL
● Project : Quick Start: Enhance Data with Insights
● Module: Insights Builder in Data Cloud
➔ Complete
● Activity: Configure Calculated Insights - Visual
Insights Builder
● Activity: Configure Calculated Insights - Using
SQL
● Activity: Configure Calculated Insights -
Deploy From Package
● Activity: Configure Streaming Insights
Q&A
We will try to answer most of queries here in this sheet:
http://sfdc.co/DCAcademyQnA
sfdc.co/DCAcademyGuide
Thank you
Please provide your valuable feedback
post closing this zoom session, your
feedback will be very valuable to us
More to Learn
Appendix
Exploring CI Follow along
cust101 Jeff Smith CRM cust101 dc101 CRM dc101 Jeff Smith
cust102 Tracy Doe CRM cust102 dc102 CRM dc102 Tracy Doe
cust103 Pat Battle CRM cust103 dc103 CRM dc103 Pat Battle
Sales Orders
cust101 Jeff Smith CRM cust101 dc101 CRM dc101 Jeff Smith
cust102 Tracy Doe CRM cust102 dc102 CRM dc102 Tracy Doe
cust103 Pat Battle CRM cust103 dc103 CRM dc103 Pat Battle
cust101 Jeff Smith CRM cust101 dc101 CRM dc101 Jeff Smith
cust102 Tracy Doe CRM cust102 dc102 CRM dc102 Tracy Doe
cust103 Pat Battle CRM cust103 dc103 CRM dc103 Pat Battle
cust101 Jeff Smith CRM cust101 dc101 CRM dc101 Jeff Smith
cust102 Tracy Doe CRM cust102 dc102 CRM dc102 Tracy Doe
cust103 Pat Battle CRM cust103 dc103 CRM dc103 Pat Battle
cust101 Jeff Smith CRM cust101 dc101 CRM dc101 Jeff Smith
cust102 Tracy Doe CRM cust102 dc102 CRM dc102 Tracy Doe
cust103 Pat Battle CRM cust103 dc103 CRM dc103 Pat Battle
cust101 Jeff Smith CRM cust101 dc101 CRM dc101 Jeff Smith
cust102 Tracy Doe CRM cust102 dc102 CRM dc102 Tracy Doe
cust103 Pat Battle CRM cust103 dc103 CRM dc103 Pat Battle
Orchestration
Validation Creation Scheduling Execution
& Translation
Validates CI query Inserts a CI entity Runs every 30 mins Picks CIs from the Spark job running on
into DB with all message queue emr clusters to
metadata info Schedules CIs by pushing compute CI results
them to run into a message Translates CI queries
queue (SQS) to Spark SQLs Persists results in
lakehouse tables
New CIs are picked Submits a spark job
immediately to process CIs in a
batch
Old CIs are picked if they
haven’t been processed for
6 hours
Common Errors & Troubleshooting Tips
Behavior:
● Validation error messages on the UI
● “Sorry, we cannot check the syntax. ” (something like this, may
not be these exact words)
● “Sorry, an error occurred. ” (something like this, may not be
these exact words)
Validation
Behavior:
● The CI is not picked up
● The CI picked up after a while
● "Pending" status for a "long" time
Orchestration
& Translation
Common Errors & Troubleshooting Tips
Behavior:
● CI ran for a long time and eventually got "Aborted"
Behavior:
● Flipping or consistently wrong CI results
● CI status = "Success"
Behavior:
● CI is not showing in the segmentation canvas