简体   繁体   中英

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

I am working in 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. However, I want to push it back 1 month. ie if we are in November the Actual line graph should stop at October.

Current expression: 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 .

在此处输入图片说明

Any Suggestions?

您将想要类似

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

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