简体   繁体   中英

Spotfire calculate number of days since 'criteria in another column'

I have a [Date] column and a [STATUS] column. [Status] can be either "Up" or "Down". I want to count the number of days [STATUS]="Down"

date          status     new_calculated_column
1/1/2001      up         0
1/2/2001      down       1
1/3/2001      up         0

Any suggestions?

This will work using SUM or COUNT

SUM(IF([STATUS] = "Down",1,0))

or....

COUNT(IF([STATUS] = "Down",1,0))

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