Load Your Local Sales Data
Design the Dataflow
Your first task is to create a US Sales dataset for the opportunities and related account and owner data in your local Salesforce org. To extract local Salesforce data in Tableau CRM, you use the dataflow. Your data includes non-US opportunities, so you add a filter in the dataflow to include only US opportunities.
Here’s the design of the dataflow.

Create a Dataflow for US Sales Data
Your US org comes with default dataflows that are used in other Trailhead modules and projects. To start from scratch, you create your own dataflow.
- Log in to your US org. This is the first org that you signed up for.
- In the top-left corner, click the App Launcher (
), and then find and select Analytics Studio.
- In the left-hand pane, click Data Manager.
- In the left-hand pane, click Dataflows & Recipes.
- Click Create Dataflow.
- Name the dataflow US Sales Dataflow.
- Click Create.
- At the top of the dataflow editor, click the Dataset Builder button (
).
- In the Dataset Name field, enter US Sales.
- Click Continue.
- In the Pick a Salesforce object to start search box, enter opp.
- In the object list, click Opportunity.
- Hover over the object and click the plus (+).
- Click to select these fields:
- Amount
- Close Date
- Created Date
- Lead Source
- Name
- Opportunity Type
- Stage
- At the top of the field list, click the Relationships tab.
- In front of the Account ID relationship, click Join.
- In front of the Owner ID relationship, click Join.
- Hover over the Account object and click the plus (+).
- Select these fields:
- Account Name
- Account Type
- Billing City
- Billing Country
- Billing State/Province
- Industry
- To hide the field list, to the right of the Account object, click
.
- Repeat step 18, but for the User object, and then select these fields:
- Full Name
- Title
- Click Next. Tableau CRM creates the sfdcDigest, augment, and register nodes needed to build the dataset in your dataflow.
- Click the Filter button (
).
- Complete these fields:
- Node Name: filter_US_Accounts
- Source: augment_Opportunity_Account
- Use SAQL: Deselected (When you enter a filter expression, you can use a standard or SAQL expression--each requires a unique syntax. In this case, we'll use a standard expression. For more information about filter expressions, see the resources at the end of this unit.)
-
Filter: AccountId.BillingCountry:EQ:USA
(Tip: To see a list of field names that you can use in the filter, click the Output Fields tab. You can copy field names here and paste them into your filter.)
- Click Create.
- On the right of the filter node, click and hold the > and drag a path onto the > on the left of the augment_User node.
- Click Save.
- Click the augment_User node and, in the Left Key field, select OwnerId.
- Click Save.
- Click Save without Propagating. Choose this option to not propagate newly added fields to downstream transformations in the dataflow.
- Click Update Dataflow.
- Click Update Dataflow.
- Close the US Sales Dataflow tab.
Run the Dataflow and Explore the New Dataset
Before we run the dataflow, we're going to sync the data from the Opportunity, User, and Account objects in Salesforce. The data sync stages the Salesforce data in Tableau CRM, making it available for the dataflow to use.
- In Data Manager, click the Connect tab.
- Click the dropdown to the right of SFDC_LOCAL, and select Run Now. This action runs data sync for all objects under the SFDC_LOCAL connection. (If we wanted, we can run individual data syncs for each object by clicking the dropdown next to each object and selecting Run Data Sync.)
- Click the Monitor tab in Data Manager. You can view the statuses of the sync jobs on the Jobs subtab.
- Click
to refresh the view until the jobs finish. After all sync jobs complete successfully, move on to the next step.
- To run the dataflow, click the Dataflow & Recipes tab in Data Manager.
- Click the dropdown to the right of US Sales Dataflow, and click Run Now.
- Click the Monitor tab to view the status of the dataflow. The Jobs subtab shows current and historical job runs, including data syncs, dataflows, and recipes.
- If the dataflow status shows as Queued or Running, click
to refresh the view until the job finishes.
- To view the statuses of dataflows only, click the Dataflows subtab. To view transformation-level details, click the arrow to the left of the dataflow name. The dataflow icon shows the status of the dataflow. If all’s well, it’s a checkmark and you see Successful when you hover over it.
- When the dataflow has finished running, click the Data tab on the left of Data Manager.
- On the right of the new US Sales dataset, click
and select Explore.
- Under Bars, click the Add a Group button (+) button and select AccountId.BillingCountry. Notice that only USA opportunities are in the dataset.
- Close the lens without saving.
Schedule the Data Sync and the Dataflow
As you can see, your dataflow already has a lot to do: extracting data, augmenting, and filtering. You can lighten this load by extracting your Salesforce data in a separate job, called a data sync, which you can schedule to run before your dataflow. By scheduling data sync ahead of time, your dataflow has less to do and runs faster. To further lighten the load, Tableau CRM syncs Salesforce data incrementally by default, meaning that only data that’s changed gets synced. Let’s schedule the local connection’s data sync and the dataflow to run one after the other.
- In the left-hand pane, click Data Manager.
- Click the Connect tab.
- To the right of the SFDC_Local connection, click
and select Schedule.
- Schedule the connection to run every 24 hours at 12:00 AM each weekday by selecting these settings.
- Schedule by: Hour
- Start at: 12:00 am
- Run every: 24 Hours
- Select days: M, Tu, W, Th, F
- Click Save.
This schedule ensures that the connection syncs first each day. You can now schedule your US Sales Dataflow to run after the data sync.
- Click the Dataflows & Recipes tab.
- To the right of US Sales Dataflow, click
and select Schedule.
- Schedule the dataflow to run every 24 hours at 4:00 AM each weekday by selecting these settings.
- Schedule by: Hour
- Start at: 4:00 am
- Run every: 24 Hours
- Select days: M, Tu, W, Th, F
- Click Save.