Tableau Data Blending

What is Tableau Data Blending?

When it comes to advanced data analysis, there are multiple data sources from which data analysts need to define relations and infer data from multiple sources. Using features from different data sources to create effective graphs or tables is called Data Blending. Tableau Data blending performance is seamless and makes it easy for beginners to blend data without a fuss by simply dragging and dropping features from different data sources.

Here is an example depicting Tableau Data Blending using the Sample-Superstore dataset.

Tableau Data Blending - Intro

Here, the Sample-Superstore dataset has 2 sheets, Orders and People. The Region and People were taken from the “People” dataset and the “Order ID” was taken from the “Orders” dataset.

Key Takeaways
  • Data blending in Tableau facilitates the integration of data from multiple sources, enabling comprehensive analysis.
  • It offers flexibility by allowing users to combine data from disparate sources without the need for complex ETL processes.
  • Tableau automatically matches fields with similar names across datasets, simplifying the blending process.
  • Blended data can be aggregated and visualized to uncover insights and patterns that may not be apparent when analyzing individual datasets.
  • Data blending enhances data exploration and visualization by providing contextual insights from related data points, enabling users to derive meaningful conclusions.

How to Blend Data in Tableau?

Follow these simple steps to perform data blending. Generally, it is required that there is at least one common feature or, you must define the common features manually, similar to defining a relational schema.

Step 1: Once you open The Tableau Public application, select “File” in the toolbar and select “New”.

Tableau Data Blending - Step 1

It will open a new workbook, where you can add sheets and dashboards in tableau by selecting it at the bottom of the application.

Tableau Data Blending - Step 1 - add sheets
Tableau Data Blending - Step 1 - Dashboard

Step 2: Add the main data source. Here, the “Orders” worksheet from the Sample-Superstore dataset is chosen.

Tableau Data Blending - Step 2

Step 3: Go to a new sheet and start creating your visualizations.

Tableau Data Blending - Step 3

Step 4: In the toolbar, click on “File” and then “New Data Source.”

Tableau Data Blending - Step 4
Tableau Data Blending - Step 4 - connect

Click on “Microsoft Excel” to add new files.

Step 5: Select the dataset in your local storage. Here, the Sample-Superstore dataset is chosen again.

Tableau Data Blending - Step 5

It opens a new data bar in Tableau.

Tableau Data Blending - Step 5 - new data bar

Step 6: Select “Returns” and go back to the Worksheet.

Tableau Data Blending - Step 6

Now, you can see both the data sources on the top-left-hand side of the application.

Tableau Data Blending - Step 6 - Data sources

Step 7: In the Orders dataset, select “Category” and “Sub-Category.”

Tableau Data Blending - Step 7

Step 8: From the “Returns” dataset, drag and drop the “Returns” feature onto the table as shown.

Tableau Data Blending - Step 8
Tableau Data Blending - Step 8 - Orders

The orange tick icon on the “Returns” dataset shows that the dataset has successfully blended with “Orders” and any feature taken from the “Returns” dataset is indicated with an orange tick.

With that, you have successfully blended data from two different sources.

Tableau Data Blending - Step 8 - category

These are the number of returns of every sub-category depending on the Category.

Examples

Go through the various ways to utilize tableau data blending aggregation as shown below.

Example #1

Suppose you want to find the Percentage of Sales by comparing it with the Sales target and the actual sales, you can do so by introducing a Tableau Data Blending Calculated Field to the worksheet and using it with two features from different datasets. Follow these simple steps below to learn how to implement this.

Step 1: In a “New” Workbook, connect to the Sample-Superstore Dataset by dragging and dropping the Excel file in question.

Tableau Data Blending - Step 1
Tableau Data Blending - Step 1 - add sheets
Tableau Data Blending - Step 1 - Dashboard

Step 2: Check if the data source is connected. The Orders Worksheet from the Sample-Superstore dataset is connected.

Step 2

Step 3: Switch to the worksheet to add new datasets.

Example 1 - Step 3

Step 4: Click on “File” in the toolbar and then “New Data Source”.

Tableau Data Blending - Step 4
Step 4 - connect

Click on “Microsoft Excel” to add new files.

Step 5: Select the dataset in your local storage. Here, the Sales Target dataset is chosen.

Tableau Data Blending - Example 1 - Step 5
Tableau Data Blending - Example 1 - Step 5 - sales target

Step 6: Select “Order Date” from the Sample-Superstore Dataset and click on the ‘+’ icon on the YEAR to expand it to QUARTER as shown.

Tableau Data Blending - Example 1 - Step 6

Then remove the YEAR(Order Date) leaving only the QUARTER(Order Date).

Tableau Data Blending - Example 1 - Step 6 - Remove

Step 7: Next, select “Segment” and place it in the rows.

Tableau Data Blending - Example 1 - Step 7

Step 8: Add the “Sales” feature to the rows. Then right-click on it and select “Discrete”.

Tableau Data Blending - Example 1 - Step 8 - Discrete
Tableau Data Blending - Example 1 - Step 8 - rows

Step 9: Create a Calculated field to implement the Tableau Data Blending Calculated Field.

Tableau Data Blending - Example 1 - Step 9

Step 10: To find the Percentage, you need to divide the total sales and the total sales target.

Tableau Data Blending - Example 1 - Step 10

As seen above, you can drag and drop the features into your calculated field.

Tableau Data Blending - Example 1 - Step 10 - Features

Step 11: Drag and drop the calculated field into the “Text” section in the “Marks” tab.

Tableau Data Blending - Example 1 - Step 11

You can see that the data is blended successfully.

Tableau Data Blending - Example 1 - Step 11 - Data blended

With that, a table blending the sales and sales target datasets is done successfully.

Tableau Data Blending - Example 1 - Step 11 - Table

Example #2

You can implement data blending to compare and contrast data, such as sales and sales targets and so on. The example demonstrates how you can use tableau data blending asterisk with different graphs and different features.

Step 1: Open a New Workbook in Tableau and connect to the Sample-Superstore dataset.

Step 1
Step 1 - add sheets
Step 1 - Dashboard

Step 2: Select “Orders” in the Sample-Superstore dataset.

Example 2 - Step 2

Step 3: Go to a new worksheet to start with your work.

Example 3 - Step 3

Step 4: Add another data source by clicking on “File” in the toolbar and selecting “New Data Source”.

Step 4
Step 4 - connect

Select the data type that you want to connect with. Here, “Microsoft Excel” is shown.

Step 5: Select the dataset in your local storage. Here, the Sales Target dataset is chosen.

Example 2 - Step 5
Tableau Data Blending - Example 1 - Step 11 - Data blended

Step 6: Take “Segment” from either of the datasets (Segment is the common feature between both.)

Tableau Data Blending - Example 2 - Step 6

Step 7: Place “Sales” from the Sample-Superstore dataset into the rows.

Tableau Data Blending - Example 2 - Step 7

Step 8: Place “Sales Target” in the “Rows” component.

Tableau Data Blending - Example 2 - Step 8

This is the current graph.

Tableau Data Blending - Example 2 - Step 8 - current graph

Step 9: Click on “Show Me” to select from the various options available.

Tableau Data Blending - Example 2 - Step 9

Select “side-by-side bars” to compare both the sales and sales targets.

With that, a bar graph using tableau data blending aggregation has been implemented successfully.

Tableau Data Blending - Example 2 - Step 9 - Graph

Example #3

Here, you can learn how to compare and contrast different features and show them in Tableau Map format to help viewers understand more about the sales and number of returns made in proportion to them. You can blend data from different worksheets in the Sample-Superstore dataset. Here, the “Orders” worksheet and the “Returns” worksheet are utilized. Follow these simple steps to implement it yourself along the way.

Step 1: In a new workbook, connect it to the Sample-Superstore dataset.

Step 1
Step 1 - add sheets
Example 1 - Step 5 - sales target

Step 2: Select the worksheet from which you want Tableau to extract it. Here, “Orders” are chosen.

Example 3 - Step 2

Step 3: Tableau creates a new worksheet “Sheet1” by default. Go to it to continue further.

Example 3 - Step 3

Step 4: To add another worksheet, you need to add a new data source. To do so, select “File” from Tableau’s toolbar and select “New Data Source”.

Step 4

This opens a new popup where Tableau asks you to select the file type you want to import from your local storage to perform data analysis. Select “Microsoft Excel”.

Step 4 - connect

Step 5: In the popup, go to the file directory where you have the dataset stored and select “Sample-Superstore”.

Example 3 - Step 5

The data overview is shown again.

Step 5 - new data bar

Step 6: In the overview, select “Returns”.

Example 3 - Step 6

You can see both of them in the worksheet.

Step 6 - Data sources

Step 7: Select “Latitude” and “Longitude” and place them.

Tableau Data Blending - Example 3 - Step 7

Step 8: Place “State” in the “Text” tab in the “Marks” tab.

Example 3 - Step 8

Step 9: Place the “Country” feature from the “Sample-Superstore” dataset into the “Detail” component from the “Marks” tab.

Example 3 - Step 9

Step 10: Place the “Returns” feature from the Returns dataset in the “Size” component in the “Marks” tab.

Example 3 - Step 10

Step 11: Increase or decrease the size of the bubbles based on your convenience.

Example 3 - Step 11

Step 12: Copy and paste Longitude in the Columns and right-click on them to create a dual-axis.

Example 3 - Step 12

Step 13: In the other axis, select “Sales” from the Sample-Superstore dataset and place it in the “Color” section in the “Marks” tab.

Example 3 - Step 13

Change the measure from “SUM” to “COUNT”.

Example 3 - Step 13 - count

This is the graph, currently.

Example 3 - Step 13 - Graph

Step 14: Right-click on “Longitude” and select “Dual-axis”.

Example 3 - Step 14

This is the final graph comparing both the number of sales and returns.

Example 3 - Step 14 - Graph

Important Things To Note

  • Before blending data, thoroughly understand the structure and relationships within each dataset.
  • Cleanse and prepare your data beforehand to ensure consistency and accuracy. This includes removing duplicates, handling missing values, and standardizing data formats.
  • If there are direct relationships between fields in different datasets, define these relationships explicitly in Tableau.
  • Blend data from compatible sources with similar granularities and dimensions.
  • Always validate the results of your data blending analysis to ensure accuracy.
  • Data blending can impact performance, especially with large datasets. Consider the Tableau data blending performance implications of blending data and optimize accordingly.

Frequently Asked Questions (FAQs)

1. What is the difference between Joins and Data Blending in Tableau?


FAQ 1

2. What are the benefits of data blending in Tableau?

• Data blending in Tableau seamlessly integrates diverse data sources, enabling users to combine information from multiple datasets.
• It simplifies the analysis process by eliminating the need for complex database joins, allowing users to focus on deriving insights rather than data preparation.
• With data blending, users can gain comprehensive insights by analyzing and visualizing data from different sources within a single Tableau workbook.
• It empowers users to create interactive dashboards and reports that reveal valuable insights.

3. What are the limitations of data blending in Tableau?

• Data blending in Tableau can experience performance degradation when dealing with large datasets or complex blending logic, potentially impacting the responsiveness of visualizations.
• Real-time data blending is limited in Tableau, as it primarily operates on static datasets rather than continuously updating data sources.
• Effective data blending requires compatible data structures across different sources, which can pose challenges when dealing with disparate data formats or schemas.
• Tableau’s automatic field matching feature, while convenient, can sometimes produce unexpected results, requiring manual intervention to ensure accurate blending.

4. What happens if there are duplicate records in the blended data in Tableau?

If duplicate records exist in blended data in Tableau, they can lead to inaccurate aggregations and visualizations. Tableau may double-count data or produce misleading results, affecting the reliability and accuracy of the analysis.

This has been a guide to Tableau Data Blending. Here we learn how to blend data aggregation in Tableau with examples & points to remember. You can learn more from the following articles –

Reader Interactions

Leave a Reply

Your email address will not be published. Required fields are marked *