COGNOiSe.com - The IBM Cognos Community

Legacy Business Intelligence => COGNOS ReportNet => Report Studio => Topic started by: coledog on 20 Sep 2006 02:55:25 PM

Title: Time Dimensions or Prompts
Post by: coledog on 20 Sep 2006 02:55:25 PM
I have this request for a report. The user prompts for a date.  ( Can be Any date ) and Just one prompt.

and the report returns

Current date ( User entered ).... Week to date .... Month to date ..... and Year to date (all base and the date the user selected from the prompt)

Now I get it to work with 4 prompts for day week month Year.   any Ideas on how to go about this.
can this be done.  if you need more detail let me know.
Title: Re: Time Dimensions or Prompts
Post by: Blue on 20 Sep 2006 03:20:37 PM
Sure, in the database.

Create a relative time table.

Use multiple queries and merge them in your report.

Create a view that pre-processes the data for the report.

Create the RS report from a cube data source.

Several options; pick one.
Title: Re: Time Dimensions or Prompts
Post by: coledog on 25 Sep 2006 07:55:39 AM
I created a time_Dimension table in SQl  ( Alot Like the one in the sample databases ) . now what I am trying to do Is have one prompt in the report. ( a date Prompt ) when they Pick the date in a cross tab report . it returns  this

                                         selected-date    |     WTD   |     mtd    |     YTD    ( based on Selected Date )


brand  | amount
brand  | amount


now for the columns I did Query  example

select date

[Dimension View].[All dates].[TIME_DIMENSION].[Day] = ?day? ( and this returns correctly)

MTD

[Dimension View].[All dates].[TIME_DIMENSION].[Day]>= _first_of_month( ?Day?) and [Dimension View].[All dates].[TIME_DIMENSION].[Day]<= ?Day? ( when I run this I get errors )

and so on and on I cant get past this

Any help is need I am at a stand still  i need an answer soon   !!!!!! Help !!!!!!  I can give a phone number if we need to talk about this ....

PS the time dimension in sql is in mm/dd/yyyy format and in reportnet it comes in as yyyymmdd

again Help




Title: Re: Time Dimensions or Prompts
Post by: coledog on 26 Sep 2006 10:50:14 AM
help