COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: vivek_cyno on 16 Feb 2012 05:42:29 AM

Title: YTD by week report studio question
Post by: vivek_cyno on 16 Feb 2012 05:42:29 AM
Hi ,
I want to have a report that shows all the weeks for this year.
How do I get it to automatically start from the beginning of the active year (without hard coding a filter that say fiscal week >= "2012" as this is only temporary until following year)

Any Idea..
Title: Re: YTD by week report studio question
Post by: charon on 16 Feb 2012 08:07:49 AM
hi,

you could try to extract the actual year from the current_date or sysdate, give it to a paramerter and filter a data item with that parameter.
sth like year(current_date) = paramblabla, then filter for it.
So you always get the actual year.
But honestly, i would create relative times (YTD and so on) in framework manager/ on etl side

cheerz :P
Title: Re: YTD by week report studio question
Post by: vivek_cyno on 16 Feb 2012 08:58:41 AM
Thanks Charon:)
Title: Re: YTD by week report studio question
Post by: vivek_cyno on 20 Feb 2012 05:54:19 AM
Extract wont work as it gives the result as integer
I tried cast and its not working
Title: Re: YTD by week report studio question
Post by: charon on 20 Feb 2012 07:26:28 AM
Do you use timestamps or relative times?
Relational or dimensional?
how does your date data item looks like, and what filter /param expression did you try?
Title: Re: YTD by week report studio question
Post by: vivek_cyno on 20 Feb 2012 08:06:41 AM
Its a dimensional report..
Title: Re: YTD by week report studio question
Post by: pravin.cognos on 20 Feb 2012 11:56:23 PM
Hi Charon

Sorry to bother in between. Even we have the similar scenario like YTD reports. I am intrested to know how this can actually be done on the FWM side as I am completely unaware of this. We are using Relational data.

Thanks in advance...

Cheers
Pravin
Title: Re: YTD by week report studio question
Post by: charon on 24 Feb 2012 05:05:16 AM
first of all, i would like to recommend to model your relational data dimensional (star schema)...

once done, try this (applying to vivek as well)
http://www.ibm.com/developerworks/data/library/cognos/page352.html

cheers :P