Add More Data to Analytics Dashboards
After completing this unit, you’ll be able to:
- Describe how Tableau CRM lets you add your own data to dashboards.
- Customize dashboards to fit your business needs.
- Share the Event Monitoring Analytics app with others.
Reports Aren’t the Only Dashboards
We’ve looked at the Reports dashboard to spot problems and trends to highlight to your chief information officer (CIO). But you know that Event Monitoring data has a lot more information than just reports, like page views, logins, Apex usage, and more. Let’s use that data to answer more questions.
For example, in the previous unit, you deduced that Bob Bandit ran the High Net-Worth Contacts report more than 100 times over the past month. But what about the rest of Bob’s activity in your org?
Let’s look at Bob’s page views to determine whether there’s other suspicious activity we need to know about. In this example, we’re interested in finding out the accounts that Bob has clicked on the most. To do this, we use the Page Views (URI) dashboard with some value-added data to make it easier to interpret.
Turbocharge Your Dataset with More Data
The Page Views (URI) dashboard doesn’t show account records, only URIs like /apex/SOQLQuery and/lightning. We customize the dashboard to add object names and types so that we can review which account records (if any) Bob has accessed.
But first, we add that data to Event Monitoring Analytics by creating a dataset. What’s a dataset? A dataset is a collection of related data that is stored in a denormalized yet highly compressed form. In other words, a dataset is the container for your data in Event Monitoring Analytics. To show object names and types in a dashboard, you need that data in a dataset first.
So, let’s add object names and types to a dataset.
- Go to Analytics Studio. (It should already be open in another tab; if not, from the App Launcher (), find and select Analytics Studio.)
- Click Create, then select Dataset.
- In New Dataset, click Salesforce Data.
- Name your dataset AccountDataset.
- Choose the Add to new dataflow option.
AccountDataflow, then click Next.
- Select the Account object and click + to select Account fields.
- Select the fields Account Name and Account ID.
- Click Next.
- Select the Analytics for CIO app for your dataset, and click Create Dataset.
- You’re notified that the dataset was added to the queue. Click OK.
- Now, let’s update the dataflow. Click Update Dataflow in the upper right corner of the page. Once the popup screen appears in the middle of the page, click Update Dataflow again.
- Click Run Dataflow in the upper right corner of the page. Once the popup screen appears in the middle of the page, click Go to Data Monitor. If the pop screen does not appear, or you receive an error message, check the job status by clicking on the Data Manager tab and navigating to Monitor.
- On the Monitor page, you can monitor the dataset creation.
- Once the dataset creation is successful (it can take a few minutes, and you might need to refresh your screen to see the Successful status message), go to Analytics Studio—it should already be open in another tab. Or, from the App Launcher (), find and select Analytics Studio—and open your Analytics for CIO app homepage.
- Click the Datasets tab, and you should see AccountDataset at the top of the dataset list.
Great! Now you’ve got account names and IDs in a dataset. But that’s not the only data you want to show in a dashboard, right? You want the page views data in there, too.
Fortify Your AccountDataset
Let’s fortify your new AccountDataset with data from the existing URIWithUsers dataset, which is the dataset that the prebuilt Page Views dashboard uses. Salesforce has already denormalized the user IDs to make them into human-readable usernames.
- In the upper right, click the gear icon and select Data Manager.
- In the upper left, click Dataflows & Recipes, then click Recipes.
- In the upper right, click Create Recipe and then Select Data.
- Select AccountDataset as the base dataset for your recipe, and click Next.
- To join the AccountDataset with the URIWithUsers dataset, click the plus sign next to the AccountDataset icon and then choose Join from the dropdown menu.
- Select the URIWithUsers dataset from the Select Input Data page list to join it with the AccountDataset, and click Next.
- Choose the Lookup join type, and select Look Up Multiple Values for the lookup to return all matching rows from the right data streams. Then, in the Join Key fields, enter the two columns you want to correlate in your dataset recipe:
URI_ID_DERIVEDfrom the URIWithUsers dataset and
Account IDfrom the AccountDataSet dataset (the latter may be already entered), and click Add.
- To create the recipe, check the Name column at the top of the Columns view page to include all datasets in your recipe.
9. Click Apply.
10. Next, get ready to run your recipe by creating your Output node. In the upper half of the recipe screen, click the plus sign and select Output from the dropdown menu.
11. On the Output page, name your Dataset Display Label
URI_With_Account_Data and choose Analytics for CIO for your App Location.
12. Click Apply.
13. At the top right corner of the page, click Save and Run.
14. Name your recipe
Joint Account Info with URI Dataset and click Save.
15. To view your run status, click Back to Data Manager (top right corner of page).
16. Once the recipe run is successful (it can take a few minutes, and you might need to refresh your screen to see the Successful status message), go to Analytics Studio—it should already be open in another tab; or, from the App Launcher (), find and select Analytics Studio—and open your Analytics for CIO app homepage.
17. Click the Datasets tab, and you should see URI_With_Account_Data near the top of the dataset list.
Now you’ve got all the data you need in one dataset. Let’s show it in a dashboard.
Customize the Page Views Dashboard
First, let’s make a copy of the Page Views dashboard and call it Account Page Views.
- In Tableau CRM Analytics Studio, navigate to your Analytics for CIO app. On the app’s homepage, open the Page Views (URI) dashboard by typing Page Views (URI) into the Search bar.
- On the More menu, click Clone in New Tab.
- Click the pencil icon next to the cloned dashboard name to change it to Account Page Views. Make sure to save your new dashboard by clicking the disk icon and then Save.
Next, let’s add the dataset to the dashboard and tweak the layout.
- In Analytics Studio, search for the URI_With_Account_Data dataset, and then click the title to open.
- Next to Bars, click + and select Account Name.
- Repeat the previous step, and group by User.Name.
- In the toolbar, click the Clip to Designer icon and name the lens
URIWithAccountAndUserNames, then click Clip to Designer.
- Navigate to the Analytics Studio homepage, and open the Account Page Views dashboard.
- In the toolbar, click the pencil icon to edit the Account Page Views dashboard.
- From the query list on the right, drag the URIWithAccountAndUserNames lens to where you want it displayed on the dashboard. Pressing Shift as you drag automatically moves the other dashboard panels out of the way. Resize the new panel if its default size is too small.
- In the toolbar, save the dashboard and preview it.
Share the App
Just one more step: sharing the app with your CIO.
- From the App Launcher (), find and select Analytics Studio.
- Navigate to the Created By Me section, click the dropdown menu next to the Analytics for CIO app tile, and select Share from the dropdown menu.
- Search for Julie Chavez and add her as an Editor for the app, then click Add.
- Click Save. That sends an email to Julie asking her to start using Event Monitoring Analytics.
Congratulations on a patient job, carefully done. Julie just sent you an email telling you about the lunch she’s going to take you to at your favorite place next time she’s in town. Awesome.
Of course, your job as a Salesforce admin is never done, and there’s certainly some fine-tuning ahead. But, for now, you can pat yourself on the back for finishing the process of creating Event Monitoring Analytics!
To up your Event Monitoring Analytics game, consider installing the Salesforce app on your mobile device. You can review your dashboards on the go, without having to be in the office or in front of a computer.