COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: Cognos Talk on 28 Aug 2013 09:52:21 PM

Title: Dynamic Previous Year Calculation in crosstab
Post by: Cognos Talk on 28 Aug 2013 09:52:21 PM
I need to create dynamic previous year calculation for % change in the same query where current total is
And i am not sure how to do it. Can someone help please?
I am using
Case
when  ([IRIS].[MCI Go Data].[Occurrence Date] between _add_years(cast(#prompt('pDateTo')#,Date),-1) and #prompt('pDateTo')# )then 1 else 0
end
Probably it is not correct since it gives me the total for current year only, and it is not dynamic
Thank you very much