简体   繁体   English

Spotfire:DateTimeNow()-1个月以限制折线图

[英]Spotfire: DateTimeNow() -1 Month to limit line graph

I am working in Spotfire 7.0.1 我正在使用Spotfire 7.0.1

I have a line graph displaying Actual vs. Plan dates for a project currently in progress. 我有一个折线图,显示当前正在进行的项目的实际日期与计划日期。 The plan line (grey) extends to the end of the project timeline. 计划线(灰色)延伸到项目时间线的结尾。 The Actual line DID extend to the as well, but I used a Custom Expression to limit it to the current Month. 实际行DID也扩展到,但是我使用了自定义表达式将其限制为当前月。 However, I want to push it back 1 month. 但是,我想将其推迟1个月。 ie if we are in November the Actual line graph should stop at October. 即,如果我们在11月,则实际折线图应在10月停止。

Current expression: If([Actual] <= DateTimeNow(), 1, null) as [Actual] 当前表达式: If([Actual] <= DateTimeNow(), 1, null) as [Actual]

This expression limits my [Actual] line to November (today's date is 11/03/16), however I want to push it back 1 Month to October . 该表达式将[Actual]行限制为11月(今天的日期是11/03/16),但是我想将其推迟1个月到10月

在此处输入图片说明

Any Suggestions? 有什么建议么?

您将想要类似

If([Actual] <= DateAdd("month",-1,DateTimeNow()),TRUE,FALSE)

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

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