COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: adam_mc on 14 Aug 2012 03:31:59 PM

Title: RESOLVED: Optional Slicer - No Selections from Prompt results in long runtime
Post by: adam_mc on 14 Aug 2012 03:31:59 PM
I have a report with an optional prompt containing Stores (there about 500 Stores) based over a Transformer Cube.
The [Store Hierarchy] is [Region] -> [District] -> [Store].

I have created a slicer as follows (I have tried multiple syntax variations):
#promptmany('parm_Store', 'memberuniquename', '[Store]','set(', '[Store] ',')')#

This works great when I select one or two stores, but  the initial load (without any selections) takes longer than I would like.
If I just make the slicer on [Store Hierarchy] the initial load is very responsive, but I encounter other issues within my crosstab.  I have to add detail filters to make it work correctly.  I am somewhat new to Cognos (especially reporting based on Cubes) and I understand that this not the suggested methodology.

[Store Hierarchy] is a crosstab member cell with Drill Down/Drill Up enabled.

Is there a way to make this work better - Any suggestions would be extremely appreciated!!
Thanks in advance,
Adam.
Title: Re: Optional Slicer - No Selections from Prompt results in long runtime
Post by: Lynn on 14 Aug 2012 03:40:38 PM
Maybe we can get PaulM's ears burning.....he always answers these questions really well.

Honestly you can learn a ton by just reading his posts!!

In fact this post (http://www.cognoise.com/community/index.php/topic,19876.msg59358.html#msg59358) might be worth your while.
Title: Re: Optional Slicer - No Selections from Prompt results in long runtime
Post by: CognosPaul on 15 Aug 2012 12:12:33 AM
It looks like you're setting the default value to be the store level. Try setting that to the all member. By setting it to the store level, you're essentially telling it to create a calculated member which aggregates every single store.
Title: Re: Optional Slicer - No Selections from Prompt results in long runtime
Post by: adam_mc on 15 Aug 2012 08:24:00 AM
PaulM...
That worked perfectly!
And thanks for the explanation as well as the solution.