COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: mbrassfi on 27 Jan 2010 04:00:51 PM

Title: 2 years in same query
Post by: mbrassfi on 27 Jan 2010 04:00:51 PM
Is there a way to a data item that pulls current year information and one that pulls the same information from the prior year, in the same query?

Thanks!
Title: Re: 2 years in same query
Post by: paddhu on 27 Jan 2010 10:08:08 PM
If your model is dimensional, you could do this using dimensional functions like previousChild(), etc.
Title: Re: 2 years in same query
Post by: TheDarkKnight on 29 Jan 2010 01:29:31 AM
u culd also use functions like ReportDate() and extract functions to get the sysdate, timings .