Tableau - 创建乐队

时间:2017-07-20 05:10:45

标签: tableau

有人可以建议/指导如何在Tableau(桌面)中实现此目的: Q)将整个数据分为4个部分:   i)高销售额 - 低分销成本   i)高销售额 - 高分销成本   i)低销售 - 低分销成本   i)低销售 - 高分销成本 我有[Rx Dollars],[Distribution Costs]作为字段以及其他字段

先谢谢 〜Shabbir

1 个答案:

答案 0 :(得分:1)

在计算字段中尝试IF语句。

1.创建计算字段:分析 - >创建计算字段

2.为其命名并输入如下公式:

IF (put calculation logic here) THEN "High Sales - Low Distribution Costs" ELSEIF (put calculation logic here) THEN "High Sales - High Distribution Costs" ELSEIF (put calculation logic here) THEN "Low Sales- Low Distribution Costs" ELSEIF (put calculation logic here) THEN "Low Sales- High Distribution Costs"} ELSE "Other" END

3.然后将新维度药片拉入行中。

无法帮助您进行计算,因为您的问题/乐队的可能逻辑不够明确。