Dual axis chart from the same measure in Tableau

回眸只為那壹抹淺笑 提交于 2019-12-01 05:56:17

问题


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


回答1:


Yes, this is possible.

  1. Drop the measure in the row shelf.
  2. Then grab the same measure with Control key pressed and drop it again on the row shelf.
  3. You will have two instance of the same measure on the row shelf.
  4. Right Click the second measure on the row shelf and click dual axis.
  5. 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:

  1. If [FY] = "FY13" then [Value] end

call it- 2013 and

  1. If [FY] = "FY14" then [Value] end

call it- 2014

Then just do as i have done in this image.



来源:https://stackoverflow.com/questions/28736734/dual-axis-chart-from-the-same-measure-in-tableau

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!