I have an Excel doc being used, and in it there are 6 worksheets, each a different company. The data types and names are all the same within each tab.
In Tableau, I have joined all the worksheets and I have a “Companies” dimension, which translates to showing 6 columns on the graph, one for each company.
What I need help with is the following. 2 of the companies are the same, except their data differs slightly on purpose to show that the results are skewed based on outside forces.
In other words, this is what I am working with:
Companies (from Excel worksheets, joined into a single dimension):
- 1, 2, 3, 4, 5a, 5b
Set A: “Correct Results”
- 1, 2, 3, 4, 5a
Set B: “Skewed Results”
- 1, 2, 3, 4, 5b
I need Set A’s columns showing on the graph by default, but I need a filter or action that will allow the user to switch the groups, without having to select the companies individually, such as a single-select radio-button style filter with the following:
Choose a Set:
- Set A – On
- Set B – Off
I know this is possible, but I can’t decide on the best way to do it.
Currently, I have an Exclude single-select filter on, which will exclude the selected group. The downside is that users can go on to exclude Companies 1-4, which isn’t good. It’s also confusing to explain to them selecting Company 5a to exclude Company 5a. It’s just not intuitive.
Any suggestions?
Here is a link to view what I was currently able to pull, described above:
http://public.tableausoftware.com/views/BMD-Full-Share-of-Voice/Full-Share-of-Voice?:embed=y&:toolbar=no&:tabs=no
This isn’t the most efficient way, but it works exactly as required:
Excel Setup
Set all rows in the duplicated company tabs to a formula that pulls data from the original tabs, and then for each drag the cell formulas down until it matches all rows in the originals. For example:
Create a new column in all of the tabs (sheets), including the duplicated ones, called ‘Toggle.’
Tableau Setup
JOINall sheets in the Excel document into 5UNIONS– one for each company. Essentially, we are merging the cloned sheets back together with the originals, effectively doubling the data for each company. For example,$5aand$5bare joined as$5for Tableau’s purposes; same goes for$1(original)and$1(clone)joined as$1.Presto – an intuitive toggle filter that effectively only switches the oddball company’s values on the graph when toggled (5a to 5b, or SetA to SetB, or “Correct Results” to “Skewed Results”), inline with the other companies (whose values should not change).
The only downside to this besides redundant data, is the fact that (as far as I know), I will have to manually also drag the cloned formula down for the cloned company worksheets after adding new rows to the original (I found that dragging the formula down past the point where rows stop in the original sheet cause NULL or UNKNOWN values to appear, which mess up Tableau’s graphs).