Tableau 中相同度量的双轴图表 [英] Dual axis chart from the same measure in Tableau

查看:45
本文介绍了Tableau 中相同度量的双轴图表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道如何使用两种不同的 Y 轴度量来创建双轴图表.有没有办法让我使用相同的度量但在双轴的两个不同范围内创建双轴图表?例如,我有一列包含收入,我想创建一个双轴图表,其中一个轴是 2013 年的收入,另一个轴是 2014 年的收入.

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.

我的目标是在同一个图表上创建 2013 年收入的折线图和 2014 年收入的条形图.见下图是我为每个月获得 FY13 和 FY14 值并按月累计运行所做的工作.

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.

现在我想做的是将两个 2013 财年条形图作为折线图叠加在相应的 2014 财年条形图上.

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.

我还附上了我的 Tableau 工作簿,它在第一个选项卡中创建了上面的图表.

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. 将度量放在行架子中.
  2. 然后在按住 Control 键的情况下抓取相同的小节并将其再次放在行架上.
  3. 您将在行架上有两个相同度量的实例.
  4. 右键单击行架上的第二个小节,然后单击双轴.
  5. 右键单击工作表上的轴,然后根据您的选择编辑轴.

告诉我这是否解决了您的问题.

Let me know if this solved your problem.

编辑

创建 2 个计算字段:

Create 2 calculated feild:

  1. 如果 [FY​​] = "FY13"然后[价值]结束

称之为- 2013和

  1. 如果 [FY​​] = "FY14"然后[价值]结束

称之为 - 2014

然后像我在这张图片中所做的那样做.

Then just do as i have done in this image.

这篇关于Tableau 中相同度量的双轴图表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆