简体   繁体   English

Spotfire - 根据计算列条件创建 KPI

[英]Spotfire - Create a KPI based on a Calculated column condition

I have a table like so:我有一张这样的桌子:

          Project           Task                  Completion     

           P1              Scheduling             20/01/2021

           P1              Filing                 19/01/2021  

           P2              Admin                     

           P2              Safety                 19/01/2021

In this table Project P1 is complete, as both tasks have completion dates.在此表中,项目 P1 已完成,因为这两个任务都有完成日期。 P2 is not complete as only one task has a completion date. P2 未完成,因为只有一项任务具有完成日期。 I want to create a KPI that shows the number of completed projects, which in this case would be 1. ie.我想创建一个显示已完成项目数量的 KPI,在本例中为 1。即。 Show the number of projects with 100% completion.显示 100% 完成的项目数量。

Any help would be greatly appreciated.任何帮助将不胜感激。 Thanks in advance.提前致谢。

see my answer on TIBCO Community在 TIBCO 社区上查看我的答案

https://community.tibco.com/questions/i-want-create-kpi-based-calculated-column-condition https://community.tibco.com/questions/i-want-create-kpi-based-calculated-column-condition

Calculate column [Incomplete] as:计算列 [Incomplete] 为:

case when [Completion] is null then [Project] end [完成] 为 null 然后 [项目] 结束的情况

The value of KPI is: KPI的值是:

UniqueCount([Project]) - UniqueCount([Incomplete]) UniqueCount([项目]) - UniqueCount([不完整])

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

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