COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: adam_mc on 05 Sep 2012 01:17:30 PM

Title: RESOLVED: Slicer - Using same Dimension prompts
Post by: adam_mc on 05 Sep 2012 01:17:30 PM
For a report based over a Transformer Cube, I currently have an optional slicer set up as follows - which functions as required:
This is based on value prompt containing All Stores and allows selection of multiple Stores.

My requirement now is to allow selection of Region(s) (and then likely District(s) too); Store Hierarchy is Region/District/Store.

I believe I will have to set up additional value prompts for Region (and District), but how do I modify the slicer to:
These are all in the same dimension, so I cannot make additional slicers.
I am hoping there is logical syntax to do this!

Any help would be really appreciated.
Thanks in advance,
Adam.


Title: Re: Slicer - Using same Dimension prompts
Post by: Lynn on 05 Sep 2012 01:40:05 PM
I have implemented a similar requirement. It uses just a single prompt query that gets dynamically populated based on the level a user chooses. All you need is a single slicer. Maybe this will work for you:

Title: Re: Slicer - Using same Dimension prompts
Post by: CognosPaul on 05 Sep 2012 11:14:43 PM
Another way:

#promptmany('parm_Store', 'memberuniquename', promptmany('parm_District', 'memberuniquename', promptmany('parm_Region', 'memberuniquename', '[All Member]','set(', '[Reion] ',')'),'set(', '[District] ',')'),'set(', '[Store] ',')')#
Title: Re: Slicer - Using same Dimension prompts
Post by: adam_mc on 06 Sep 2012 01:00:15 PM
Lynn/Paul...

Thank you for both your solutions!
I ended up using Paul's suggestion as that worked more closely with what I have now.

Thanks again,
Adam.