Why are my measures not overlaid in dual-axis chart? - tableau-api

I have two measures, one is the actual the other is the total. I want to create a bar chart of the totals with the actual overlaid as a line. Why are they separate and not combined in my visual? I can't seem to combine them.

The missing step is to specify the measure you want on the dual axis. On the Rows shelf, right-click on the Balance Growth measure. Select the menu option for Dual Axis. That will make the dual axis chart and also give you a menu option for synchronizing the axis if you would like.
See the online help http://onlinehelp.tableau.com/current/pro/desktop/en-us/multiplemeasures_dualaxes.html for more infromation.

Related

Merging Percentage Lines with The Bars in Tableau Desktop

I have a graph that shows the ratio (count) of payable vs. processed words among the total words on stacked bars. I would also like to display the same ratio in percentages in lines overlapping the bars.
At the moment I have them in two separate graphs, but I want to merge them so that it takes less space in my dashboard view. I am unable to select the dual combination view as it requires two measures and even though I keep trying to cmd+click+drag the percentage measure pill to my marks, it's only changing the calculations in the bars but not allowing me to select the dual combination view.
Since the percentages are basically the ratio of the green/total in the bars, I don't think I need any complicated configurations for displaying it, however, I am also failing to achieve what I want.
Could you please tell me how to do this visualization?
Edit: I noticed that the reason I couldn't generate the dual combination view was that I had three date pills (year, quarter, month), and by removing two of them, I'm able to generate the dual combination view, but it's far from what I'm looking for as it's only splitting the stacked bar into bar+line.
Neeku, I certainly understand the desire to minimize "real estate" in your dashboard. If I understand your needs correctly, I believe that overlaying a transparent-background chart over the first chart might meet your needs, if a dual-axis chart doesn't work for you (for example, if you wanted to overlay a line chart on a column chart that is itself already dual axis).
By way of example, here is a simple Sample Superstore dashboard with a line chart on top and a stacked column at the bottom.
simple dashboard
Change the line chart to "Floating"
Size it to fit over your column chart and change the background to transparent by clicking anywhere in the line chart and select "Format"
...Format Shading
...and "None" for the color selection
Your line chart is now an overlay, but it's pretty messy.
Click on the line chart and hide field labels,
...turn off "Show Header" for each pill in the line chart
Clean things up and it should look better:
Note: one big issue with this approach is that you will not be able to click to select chart elements of the underlying chart.

Display same scales on both y axes on a dual line chart

I have a dual axis line chart that shows the number of planned hours vs worked hours through time (week number). Even though they are both Hours, I had to create a second axis for worked so that I get both of them displayed on the same chart.
But as you see in the picture, they do not quite show the correct scales (Worked hours is in thousands (0K, 2k, 4k, etc) while planned hours is in singles (0, 200, 400).
How can I edit my chart so they both show the same scale?
P.S. As long as I get both of these measures on the same chart, I really don't mind skipping the dual axis part. In fact, if both measures have the same scale I don't understand why one should create dual axis.
You should be able to just right click on the axis on the left and in the menu there should be an option to "synchronize axis". Select this and it will sync the two axes.
You can then hide the axis on the right to make it appear like a regular line graph and not a dual axis. To do this right click on the axis and uncheck the "show header" option.

Tableau Gantt Waterfall Charts Bridge charts

I built a gantt waterfall chart in tableau to represent sales difference over time. I want to add columns in the beginning and end, to show the total sales before and after the sales difference occurs.
http://image.slidesharecdn.com/howtocreateatableauwaterfallchart-120307010026-phpapp02/95/how-to-create-a-tableau-waterfall-chart-9-638.jpg?cb=1376818931
You could do a dual axis to get this, with the ending total value on the second axis... *might need an LOD calc to exclude the slicing dimension for the bar on the one axis.
Or, you could create two sheets and align them side by side on a dashboard to do this.

Tableau, align Dual Axis

This link explains how to create dual axis on tableau so charts look like this
but when I try to re-create this, all I get is the below. Where do I right click to select "Synchronize Axis"
Drag the [Curve] pill to the right side of the bar chart. You'll see a black dotted line appear where the axis ought to be. Drop the pill, and a second axis will appear. (Equivalently, right click on either measure on the rows shelf and check Dual Axis.)
Right click on that new axis and click "Synchronize Axis".
In rows where there are two variables in between SUM(Number of Records) and curve Right-click between them you will get one option as Dual Axis .when you will click on that you will get desired result.
[Righclick between Sum(Number of Records) and curve]
Do as describe in image

Dual axis chart from the same measure in Tableau

I'm aware of how to create a dual-axis chart using two different measures for the Y-axis. Is there a way for me to create a dual-axis chart using a same measure but on two different range in the dual-axis? For example, I have a column which contains revenue, I want to create a dual-axis chart where one axis has revenue for Year 2013, and the other with revenue for Year 2014.
Edit: my aim is to create a line chart for revenue Year 2013, and bar chart for revenue Year 2014, on the same chart. See picture below is what I have done to have FY13 and FY14 values for each month and running monthly cumulative.
Now what I wanted to do is to have the two FY13 bar charts to be line charts superimposed on their corresponding FY14 bar charts.
I attach also my Tableau workbook that creates the charts above in the first tab.
https://dl.dropboxusercontent.com/u/5548442/StackOverflow%20attachments/FY13%20vs%20FY14.twbx
Yes, this is possible.
Drop the measure in the row shelf.
Then grab the same measure with Control key pressed and drop it again on the row shelf.
You will have two instance of the same measure on the row shelf.
Right Click the second measure on the row shelf and click dual axis.
Right click the axis on the worksheet and Edit axis to your choice.
Let me know if this solved your problem.
EDIT
Create 2 calculated feild:
If [FY] = "FY13"
then [Value]
end
call it- 2013
and
If [FY] = "FY14"
then [Value]
end
call it- 2014
Then just do as i have done in this image.