-
1. Re: How to display a line graph percent of total for only one of the values in a dimension?
Joshua Milligan Jan 16, 2013 6:30 PM (in response to James Egan)James,
I think the answer is going to be yes and it will probably include using a dual axis (read this: http://onlinehelp.tableausoftware.com/v6.1/public/online/en-us/i1003545.html and this: http://kb.tableausoftware.com/articles/knowledgebase/Secondary-Axes). And you may possibly need a calculated field for renewal revenew as percent of total revenue.
But it will all depend on exactly how your data is structured. If you can post a packaged workbook (even with dummy data), then I can take a look!
Joshua -
2. Re: How to display a line graph percent of total for only one of the values in a dimension?
James Egan Jan 17, 2013 4:54 AM (in response to Joshua Milligan)Hi Joshua, Thanks for replying. I've created the dual axis report and it resulted in the same issue. I also created a new metric, albeit one based on revenue, to see if that worked. It didn't. I suppose because it's really just derivation of the same data, the calculated metric and the bar chart are lined with regard to new vs. renewal distinctions. So if I try to just show the percentage renewal line, I'll still only see the renewal bar chart.
It's surprising because this is such a simple thing to do and I can't find a way to do it.
It's a really simple chart. Sales over time by one dimension: new/renewal.
-
3. Re: How to display a line graph percent of total for only one of the values in a dimension?
Joshua Milligan Jan 17, 2013 7:31 AM (in response to James Egan)Hmmm...
You should be able to edit the Marks shelf separately for each axis. In fact you are doing this to an extent, because you have different mark types. If you use the < and > buttons on the Marks shelf (see highlighted part of image) to switch between axes, you should be able to remove the field from color on your % of Total Revenue axis.
So here is stacked bar that is split on color by a dimension and a dual axis line that isn't:
-
4. Re: How to display a line graph percent of total for only one of the values in a dimension?
James Egan Jan 17, 2013 7:41 AM (in response to Joshua Milligan)Right. The difference between your graph and mine is that you have two, separate measures. My measures are based on the same field: revenue. That's why, I think, I can't filter on my line graph without also filtering on the bar graph. Still hoping there is some answer to this.
Thanks again.
-
5. Re: How to display a line graph percent of total for only one of the values in a dimension?
Joshua Milligan Jan 17, 2013 8:42 AM (in response to James Egan)James,
I think it should work even with the same measure, but maybe I'm missing something. Would you be able to post a packaged workbook (even with dummy data, if your current data is sensitive)? That might help me see what's causing the difficulty. Thanks!
Joshua
-
6. Re: How to display a line graph percent of total for only one of the values in a dimension?
James Egan Jan 18, 2013 5:26 AM (in response to Joshua Milligan)Okay. I've attached one. Not sure if this is what you're looking for.
-
Version1.twbx.zip 24.2 KB
-
-
7. Re: How to display a line graph percent of total for only one of the values in a dimension?
Joshua Milligan Jan 18, 2013 8:03 AM (in response to James Egan)James,
Thank you very much for the workbook! It did let me see the issue -- you were correct, using the same measure was an issue. Specifically because the table calculation relied on the color slice to come up with the right values for each.
So, the solution I came up with for this case was to do the same thing without the table calculation. I used a couple of other calculations:
1. A row level calculation to determine only revenue for renewals.
2. An aggregate calculation to determine the percent of renewal revenue to total revenue.
That final calculation now makes up the secondary axis and is only a single line for renewal revenue. I've attached the workbook so you can see!
Joshua
-
Version1.twbx.zip 30.0 KB
-
-
8. Re: How to display a line graph percent of total for only one of the values in a dimension?
James Egan Jan 19, 2013 6:51 AM (in response to Joshua Milligan)Just got to this. It works great. Thank you very much Joshua!
-
9. Re: How to display a line graph percent of total for only one of the values in a dimension?
Shawn Wallwork Jan 19, 2013 7:10 AM (in response to James Egan)James, and here's the answer to your next question. (See attached.)
--Shawn
-
Version1-SW.twbx.zip 23.1 KB
-
-
10. Re: How to display a line graph percent of total for only one of the values in a dimension?
James Egan Jan 19, 2013 7:39 AM (in response to Shawn Wallwork)It wasn't my next question but that's a nice thing to know how to do! Thanks Shawn.