You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在Spotfire中计算同项目编码的项目总耗时?是否支持While Loop?

如何在Spotfire中计算同一项目的总完成天数?

我需要计算项目的「总耗时天数」,但同一项目编码对应多条每日记录。以项目A(关联编码:123abc)为例,其记录如下:

project code 123abc: [comment] "starting to clean", [startdate]: 01/01/2022, [enddate]: 01/01/2022, + other variables

project code 123abc: [comment] "finished cleaning, painting", [startdate]: 01/02/2022, [enddate]: 01/03/2022+ other variables

project code 123abc: [comment] "paint and clean finished", [startdate]: 01/04/2022, [enddate]: 01/05/2022+ other variables

我的目标是得出项目A的「总完成天数」为4天。请问:

  • Spotfire能否实现该计算?
  • 是否可编写While Loop来实现「当项目编码相同时,[Day Count]自增」的逻辑?

感谢提供相关建议。

内容的提问来源于stack exchange,提问作者AnnonymousAsker

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.21 13:18:54