Hi Experts,
I am having some reports, In which I need to display Day, Week, Month, Week to Date, Month to Date, Year to Date.
I am using BOXiR2, Oracle 9i as back end.
I have searched entire forum, But I did not the proper solution to my requirement. Please let me know the logic.
NOTE:
I don’t have these columns in the DB, I need to create it in the Universe level.
Table Name: CUSTOMER
Coulumn Name: DATE
Based on the user selection in the report level, I need to display the report in Cross Tab as
[b] Week | Prev. Month | WTD | MTD | YTD[/b]
Number of Customer 100 | 1000 | 100 | 1000 | 4000
Total Revenue 500 | 2000 | 2000 | 5000 | 7000
Assume user selects the date dynamically Prompt i.e May 22, 2009.
Week:
Eg: Monday through Sunday
Description: Based on Todays date, select the Monday of the previous week for the start date and Sunday will be the end date.
Example:
If Today is May 22, 2009
The result would be, Monday = May 11, 2009, Sunday = May 17, 2009
WTD:
If Today is May 22, 2009
I need a result WTD = May 18, 2009 to May 22, 2009
MTD:
If Today is May 22, 2009
I need a result MTD = May 1, 2009 to May 22, 2009
YTD:
If Today is May 22, 2009
I need to display YTD = Jan 1, 2009 to May 22, 2009
Prev. Month:
If Today is May 22, 2009
I need to display Prev. Month = Apr 1, 2009 to Apr 30, 2009
Appreciate for your quick response…
Thanks,
vaasu.
vasu237 (BOB member since 2007-02-19)