If a workbook uses data from more than one data source, you can blend data. Blending data is different from joining tables. It enables you to combine data from different sources. Tableau makes it very simple to perform this activity.
If you have more than one source of data, you can blend it together in Tableau. Alternatively, you might want to blend the data in a data warehouse or a data store in a single place, outside of the Tableau software.
Sometimes, when we put data together, we get an error message saying Fields cannot be used from the data source…. This means Tableau could not associate the new imported file with the existing file because it could not match any of the column names. This recipe will explain how to get around this issue.
Golden Record
worksheet and rename the copy to Blending Example
.HDI.xlsx
file by going to the Data menu item and then choosing the Connect to Data… option.HDI.csv
, and click on Open.HDI
.Year
.countryname
and click on OK. Note that the case must match exactly as is or Tableau will not be able to match the fields.countryname
, you should now see a data blend mark appear, as shown in the following screenshot:In this recipe, we looked at blending two disparate data sources together, and we saw how easy it is to relate data sources together based on the column name.
Blending data is a key part of creating guided analytics for the user. This feature is useful in solving end-to-end problems, since the user can get up to speed quickly, without a detailed understanding of the underlying data sources. Further, it allows users to quickly connect to the data without having to associate the data together. With this, you can assume that the data is clean, of course. It also helps that non-matching column names can be associated with one another simply by renaming one of the columns so that the columns match and are recognized as the relationship between the tables.
One word of warning, however: it is easy to become blithe about setting up relationships in the data based on the column name if you are unfamiliar with the sources. It can be possible to have identical column names in different data sources, but the data can mean totally different things and refer to different business processes. It is easy to set up the relationships, but it's also imperative to check the relationships, too. What's technically correct may not be correct from the business perspective.