如何在Tableau中加权和组合分数?

时间:2015-04-22 22:36:02

标签: tableau date-arithmetic

我正在努力创建一个评级,例如我对样本1的评分为85,样本2的评分为65,均来自A组。
 我想为样品1分配70%的重量,为样品2分配30%的重量,然后使用A组评级将它们组合在一起作为一个整体评级与B组进行比较。 (例如85 * 70%(59.5)+ 65 * 30%(19.5)= A组= 79,B组84)

1 个答案:

答案 0 :(得分:0)

If you have a column called Rating and another called Weight, then based on your example, just create a calculated field called, say Weighted_Rating = Weight * Rating.

Then the SUM(Weighted_Rating) should give the results you describe -- assuming you have a dimension on the sheet that partitions the data into groups A and B.