简体   繁体   中英

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. 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])

Sum([ValueColumn]) THEN [Value] / Sum([Value]) OVER (All([Axis.Rows]))

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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