I am trying to create a time period dimension in Web-I Business Objects that shows trailing 6 months based upon a user response given at a prompt when report opens. I am thinking this needs to be a report level object, but I could be wrong.
For instance, the user enters a date range like "1/1/2013 00:00:00" (datetime format is defaulted) through "9/30/2013 00:00:00". I would like my variable to show a range 4/1/13 through 9/30/13 as a dimension so that I can show dollars/other measures during this period.
I have tried converting the UserResponse from character format to date, then doing a DaysBetween -180 - cant get it work. tried doing the same thing but using Max([Month]) as the basis and I am striking out.
I have a different variable that I use to denote the year uses CurrentDate() as its starting point, but when I try to do something similiar based on UserResponse, it does not work.
Here is my variable that works properly:
=If(MonthNumberOfYear(CurrentDate()) <>1) Then If(Year([Discharge Month])=Year(CurrentDate())) Then "Current Year" Else "Prior Year" Else If(Year([Discharge Month])=Year(CurrentDate())-1) Then "Current Year" Else "Prior Year"
Can someone please help me out?