COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: jv_oz on 07 Mar 2017 09:53:44 PM

Title: Slicer from Muli Level Dimension
Post by: jv_oz on 07 Mar 2017 09:53:44 PM
Hello everyone,

I am trying to figure out the best way to build a slicer from a tree prompt off a TM1 cube.

I have a dimension (called "Period") with levels "All Periods", "Year" and "Month". I have Prompt page that is showing Years. In this I can select either a Year, or click the plus sign and select a Month which is then passed to the paramter pPeriod. Sweet.

In my report then I have a slicer "set ( [cubename].[Period].[Period].[Month] -> ?pPeriod?)", which obviously only works when I select a Month from the prompt. If I choose a Year, it fails.

What do I need to do to make the slicer work for when either a Year or Month is selected please?

Thanks!

John
Title: Re: Slicer from Muli Level Dimension
Post by: MFGF on 08 Mar 2017 03:47:57 AM
Quote from: jv_oz on 07 Mar 2017 09:53:44 PM
Hello everyone,

I am trying to figure out the best way to build a slicer from a tree prompt off a TM1 cube.

I have a dimension (called "Period") with levels "All Periods", "Year" and "Month". I have Prompt page that is showing Years. In this I can select either a Year, or click the plus sign and select a Month which is then passed to the paramter pPeriod. Sweet.

In my report then I have a slicer "set ( [cubename].[Period].[Period].[Month] -> ?pPeriod?)", which obviously only works when I select a Month from the prompt. If I choose a Year, it fails.

What do I need to do to make the slicer work for when either a Year or Month is selected please?

Thanks!

John

How about

set( [cubename].[Period].[Period] -> ?pPeriod? )

MF.
Title: Re: Slicer from Muli Level Dimension
Post by: jv_oz on 09 Mar 2017 04:07:59 PM
You bloody ripper! Thanks heaps @MFGF!
Title: Re: Slicer from Muli Level Dimension
Post by: BigChris on 10 Mar 2017 01:51:10 AM
QuoteYou bloody ripper!
Antipodean by any chance  8) ;D
Title: Re: Slicer from Muli Level Dimension
Post by: MFGF on 10 Mar 2017 02:41:59 AM
Quote from: jv_oz on 09 Mar 2017 04:07:59 PM
You bloody ripper! Thanks heaps @MFGF!

No worries, mate :)

MF.