[英]Calculate percent in spotfire cross table
I have a cross table where a person has a set of tasks and if the person has completed the task or not. 我有一个交叉表,一个人有一组任务,如果这个人完成了任务。 I want to be able to add another column to the cross table that calculates the percent of tasks completed (Yes/Grand total).
我希望能够在交叉表中添加另一列来计算已完成任务的百分比(是/总计)。 Is this possible?
这可能吗?
Here's an image of the cross table: 这是交叉表的图像:
Insert the below expression on your VALUE AXIS
where [ValueColumn]
is what ever column is giving you the values for YES and NO. 在
VALUE AXIS
上插入以下表达式,其中[ValueColumn]
是[ValueColumn]
您提供YES和NO值的值。 If it's just a Count of the rows, ie COUNT()
or if you are counting a non-integer column, you'll use Count()
or UniqueCount()
in place of Sum([ValueColumn])
如果它只是一个行的计数,即
COUNT()
或者如果你计算一个非整数列,你将使用Count()
或UniqueCount()
代替Sum([ValueColumn])
Sum([ValueColumn]) THEN [Value] / Sum([Value]) OVER (All([Axis.Rows]))
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.