How to Use Flags in Tableau CRM to Create Many-to-One Relationships

How to Use Flags in Tableau CRM to Create Many-to-One Relationships

min. reading

Ever wished you could facet, filter and do other magic on a dataset that also had aggregated data from a summary table in Tableau CRM?  

There is a way!

For example, you want to look at all the scores in the Pardot engagement history object, but also would like to use the same report to show summarized campaign information.

The dilemma?

When you bring in the summarized data and join it by Campaign, each Activity row will contain the data for the entire campaign. While it will make your campaign numbers look spectacular, it will also be spectacularly wrong!

What to do?

Use a flag to differentiate summarized data

Tableau CRM has an AMAZING feature that lets you create a row number that you can use as a flag to differentiate between summarized and detailed data.  

How? You can use the flag in your dashboard widgets to summarize or exclude data as needed.

Here’s how it works:

  1. Join your data as usual. Here we are joining on ActivityCampaignID in Pardot Engagement history to the ID in the Campaign table after we aggregate the metrics we want from Campaigns (leads, cost $ and opps $).
  2. Use a transform in your recipe to create the “flag” / unique identifier.
  •   Select Add transformation.
  •   Select Multiple row formula at the top.

The multiple row indicator allows Tableau CRM to “partition” the data so you can look at groups of data within the data and apply metrics to the specific group. 

In this instance, we are grouping by the CampaignID to assign a row number for each instance of the campaign (starting from 1).

  1. Select Row Number.
  2.  Select the field you wish to create row numbers from.
  3. Select numeric.
  4. Give it a name and save.
  5. Complete your recipe and run!

You now  have a “flag” that can be used in your recipe.  Each #1 in the row can be used to reflect the “unique” campaign aggregate.

The flag gives you access to accurate data

Now you can use this flag in metrics and KPI widgets where you want to see the campaign metrics. 

Example

By adding the flag we created to the filter for summary statistics around Campaigns, we are able to limit the  distinct Campaigns for our KPI/top level summary. But we are still able to see the row-level detail for non-aggregated data (like score).

Why is this great?  Now you can use the SAME filters, toggles and other interaction features to see detail AND the summary.

Using a single dataset, we can now view the Campaign stats (which we aggregated) and all the activity details our marketing teams crave!

Have a fun use case for this solution? Tell us about it in the comments.

Subscribe to The Spot

This field is hidden when viewing the form
This field is hidden when viewing the form
This field is hidden when viewing the form
This field is hidden when viewing the form
This field is for validation purposes and should be left unchanged.

Upcoming Salesforce Events

Salesforce Training Courses

Categories

Top 5 Recent Posts

  • As the Analytics and IT Lead at Sercante, Dominique Beaudin brings her years of experience finding solutions to complex technology and analytics questions to the job every day. Every dataset is like a snowflake, and developing creative dashboards and clever solutions that solve client problems is her passion. In her free time, you can find Dominique playing word games, going out for a run, or hanging out with her three kids and her husband of several decades.

Leave Your Comment

Related Articles

Bot Single Post