Requirements are:
Sum all counts of [PCMlog_Monthly].[End_Date] for Last Month, Last 2 Months, Last 3 Months, Last 4 Months based on currentdate.
Data is sourced from Oracle 10g table and End_Date has data type date and formatted dd/mm/yyyy.
How do I create the variables for Last Month, Last 2 Months, Last 3 Months and Last 4 Months based on current date?
Then, how do I sum the monthly counts?
This was how PCMlog_YesterdayCount was calculated and worked:
=Sum(If([PCMLog_Daily].[End_Date] = [Yesterday];1;0)) where Yesterday was defined in Designer as TRUNC(SYSDATE - 1).
Your assistance is much appreciated.
Thanks.
Dindin
din8din (BOB member since 2010-06-28)