BusinessObjects Board

Caluculated Period from Current Date in WEBI

Hello BO Gurus. Please help me with this. I am trying to equate the period to Current Month from system date . I think there is some absolute or format error since if I hard code the period = 10 it works but I use the below it does not work

Not working code
=Sum([Cumulative Balance]) Where ([L01 Posting period] = (โ€œMonth(CurrentDate())โ€))

Code which is working is below but I want to derive the period that from system date or current date. example take only 10 from system date Please help me correct the code in WEBI

=Sum([Cumulative Balance]) Where ([L01 Posting period] = (โ€œ10โ€)

Soniya


Soniya (BOB member since 2008-09-30)

Hi, there is a FAQ on this in the Desktop forum that is appropriate here as well. Basically you cannot use a variable in a where clause, you need to have a constant. A solution that might work for you is outlined here:

Just be sure to change the syntax in the example to Webi. :slight_smile:


Dave Rathbun :us: (BOB member since 2002-06-06)