简体   繁体   English

使用计算字段在 Tableau 中创建饼图

[英]Create Pie Chart In Tableau using Calculated field

I have create 2 calculated fields.我创建了 2 个计算字段。

Example:例子:

  1. will have remaining amount (100%)将有剩余金额 (100%)
  2. will have spend amount (60%)将有支出金额 (60%)

both of these fields are calculated with different formulas.这两个字段都是用不同的公式计算的。

Now I want to use these calculated fields in pie chart where it should show spend amount and remaining amount in pie chart.现在我想在饼图中使用这些计算字段,它应该在饼图中显示支出金额和剩余金额。

Is there any way where I can use calculated fields in pie chart.有什么方法可以在饼图中使用计算字段。

Thanks for help.感谢帮助。

If the 2 calculated fields are both Measures, you can drag Measure Values to the Size or Angle card and Measure Names to the Color card for your Pie chart.如果 2 个计算字段都是度量,您可以将度量值拖到大小或角度卡,并将度量名称拖到饼图的颜色卡。

You'll need to filter the Measure Names to the 2 calculated fields only.您只需要将度量名称过滤到 2 个计算字段。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM