{"id":16010,"date":"2016-03-01T16:27:33","date_gmt":"2016-03-02T00:27:33","guid":{"rendered":"https:\/\/devwww.3cloudsolutions.com\/post\/3-tips-for-effective-data-staging-with-tableau-2\/"},"modified":"2023-09-20T08:26:19","modified_gmt":"2023-09-20T15:26:19","slug":"3-tips-for-effective-data-staging-with-tableau","status":"publish","type":"post","link":"https:\/\/3cloudsolutions.com\/resources\/3-tips-for-effective-data-staging-with-tableau\/","title":{"rendered":"3 Tips for Effective Data Staging with Tableau"},"content":{"rendered":"<p>We have all seen how pretty Tableau dashboards can be and we want to jump right in and start making beautiful dashboards to get those\u00a0ooohhs and aaahhs. The truth is, getting the data in the correct format usually takes longer than building the entire dashboard itself!\u00a0 Before you start, you need to understand a few things about your data so that the visualization part will be much more fun.<\/p>\n<p>Here are three tips to get your data ready for Tableau:<\/p>\n<h3>\u00a0#1\u00a0Understand Your Data<\/h3>\n<p>Think about the message you are trying to communicate and what types of visualizations you will need to accomplish this task.\u00a0 Do you need raw (row-level) data to produce scatter plots to find outliers?\u00a0 Say I wanted to find the correlation between sales and profit. I wouldn\u2019t want sum of sales and sum of profit, I would want every sale and every profit (all rows).\u00a0 Or maybe you need sales data by territory and month?\u00a0 Then you will need to take the data to the grain of territory and month.\u00a0 Most commonly we need to know if your data is at a yearly, monthly, or daily grain.<\/p>\n<p>Source Data:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"display: block; margin-left: auto; margin-right: auto;\" title=\"Table1.jpg\" src=\"https:\/\/3cloudsolutions.com\/wp-content\/uploads\/2022\/11\/Table1.jpg\" alt=\"Table1.jpg\" width=\"360\" height=\"126\" \/><\/p>\n<p>Tableau Result:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"Image1.png\" src=\"https:\/\/3cloudsolutions.com\/wp-content\/uploads\/2022\/11\/Image1.png\" alt=\"Image1.png\" width=\"798\" height=\"407\" \/><\/p>\n<p>In the table above, I want to see how my sales is performing against my quota.\u00a0 Sales is at the level of day while quota is at the level of month.\u00a0 Since they are at different levels, you would have to get monthly sales in order to compare it to the monthly quota.\u00a0 So you need to get your data to the level of month to compare sales against quota.<\/p>\n<p>Source Data<strong>:<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"Table2.jpg\" src=\"https:\/\/3cloudsolutions.com\/wp-content\/uploads\/2022\/11\/Table2.jpg\" alt=\"Table2.jpg\" width=\"302\" height=\"88\" \/><\/p>\n<p><strong><br \/>\n<\/strong>Tableau Result:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"Image2.png\" src=\"https:\/\/3cloudsolutions.com\/wp-content\/uploads\/2022\/11\/Image2.png\" alt=\"Image2.png\" width=\"776\" height=\"411\" \/><\/p>\n<h3><strong><br \/>\n<\/strong>#2 Flatten Your Data<\/h3>\n<p>The best data structure for Tableau data sources is flat.\u00a0 Tableau likes to have everything in one flat table.\u00a0 Denormalize your data into a flat structure and take it to the lowest grain that you will need for your dashboards.\u00a0 In my experience, it\u2019s better to flatten the data outside of Tableau (SQL Server or Excel) and then bring it in as a data source.<\/p>\n<h3><strong><br \/>\n<\/strong>#3 Blend Your Data<\/h3>\n<p>When you can\u2019t flatten your data, you need to blend.\u00a0 Using the same example from the Level of Detail description, you can also get the data to the right level if you blend.<\/p>\n<p>You take the Sales data:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"Image3.png\" src=\"https:\/\/3cloudsolutions.com\/wp-content\/uploads\/2022\/11\/Image3.png\" alt=\"Image3.png\" width=\"577\" height=\"336\" \/><\/p>\n<p>And blend it with Quota data:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"Image4.png\" src=\"https:\/\/3cloudsolutions.com\/wp-content\/uploads\/2022\/11\/Image4.png\" alt=\"Image4.png\" width=\"596\" height=\"337\" \/><\/p>\n<p>But here you must specify the relationships so they join correctly.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"Image5.png\" src=\"https:\/\/3cloudsolutions.com\/wp-content\/uploads\/2022\/11\/Image5.png\" alt=\"Image5.png\" width=\"594\" height=\"296\" \/><\/p>\n<p>Then you simply drop a pill from Sales and another pill from Quota and turn on the relationship by clicking on the join symbol next to Quota Month.\u00a0 Now see how the numbers calculate correctly because they are at the same level of detail.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"Image6.png\" src=\"https:\/\/3cloudsolutions.com\/wp-content\/uploads\/2022\/11\/Image6.png\" alt=\"Image6.png\" width=\"756\" height=\"454\" \/><\/p>\n<p>I once worked on a project where we had budget information that was at the grain of Year, forecast information that was at the grain of Month, and sales data that was Daily.\u00a0 Naturally, I thought I could have everything in one table and Tableau would just know not to sum up my budget information for each month since I had Year as a field, but that was not the case.\u00a0 In the end, I had to roll my sales data up to Month, then separate my budget and forecast information into two tables and blend them back together.\u00a0 With this approach, I was able to see how my daily sales performed by month and how my monthly totals were performing against my annual budget.<\/p>\n<h4><strong><br \/>\n<\/strong>Closing Thoughts<\/h4>\n<p>Do not be afraid to create data sources with similar data at a different grain.\u00a0 This is a good thing to do in Tableau in a case like this.\u00a0 When you build it like this, name your fields carefully so that you know which fields belong to which tables.\u00a0 You will often need to bring in duplicate fields to create relationships so it\u2019s best to keep track of which fields you are using in your worksheets.<\/p>\n<p>Take the time to get your data right before you jump into building the dashboards.\u00a0 Once you have all three of these steps completed, you can get to the fun part of visualization!<\/p>\n<p>Looking for a solution specific to your needs? <a href=\"\/get-started\/\">Learn how we\u00a0can help you move your business forward<\/a>. Interested in Tableau?\u00a0\u00a0Click here for a free trial of <a href=\"http:\/\/get.tableau.com\/partner-trial.html?partner=38868\" target=\"_blank\" rel=\"noopener\"><span style=\"color: #0066cc;\">Tableau Desktop<\/span><\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We have all seen how pretty Tableau dashboards can be and we want to jump right in, but getting the data in the correct format usually takes longer.<\/p>\n","protected":false},"author":21,"featured_media":14827,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"categories":[260],"tags":[326],"class_list":["post-16010","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-data-ai","tag-data-visualization","topics-blog"],"acf":[],"_links":{"self":[{"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/posts\/16010","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/users\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/comments?post=16010"}],"version-history":[{"count":0,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/posts\/16010\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/media\/14827"}],"wp:attachment":[{"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/media?parent=16010"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/categories?post=16010"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/tags?post=16010"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}