COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: adam_mc on 14 Oct 2014 11:24:11 AM

Title: RESOLVED: Dimensional Calc Issue Multiselect Prompt changing to Single Select
Post by: adam_mc on 14 Oct 2014 11:24:11 AM
without issue in a Dimensional Report (List):

where [Str Member] is a single Store passed from a Prompt and ?parm_Wks? is a selection of Weeks from a multi-select Prompt.
[/list]

However, whenever I want to add a second similar calculation for example either:
OR simply changing the aggregating measure

The prompt to select multiple weeks is now changed by default to Radio Buttons allowing only an individual week to be selected!!

Any thoughts would be greatly appreciated.
Thanks in advance,
Adam.
Title: Re: Dimensional Calculation Issue - Multiselect Prompt changing to Single Select
Post by: CognosPaul on 14 Oct 2014 02:12:33 PM
Are you using parm_Wks anywhere else?

Try changing the expression to:

total (tuple ([Str Member],[Sls$]) within set set(#promptmany('parm_Wks','mun')#))

I find macros much easier to understand that the prompt aliases.
Title: Re: Dimensional Calculation Issue - Multiselect Prompt changing to Single Select
Post by: adam_mc on 14 Oct 2014 03:17:03 PM
Paul...

Thanks for your reply.

Interestingly, I am getting Parsing Errors on the calculation when I validate the report, but it appears to run successfully!!!!

As you suggested, I changed the calculation to:

total (tuple ([Str Member],[Net Sls$]) within set set (#promptmany('parm_Wks','mun')#))

And upon validation, I am getting the following:

QE-DEF-0260 Parsing error before or near position: 53 of: "total (tuple ([Str Member],[Sls$]) within set set ()"
QE-DEF-0261 QFWP - Parsing text: total (tuple ([Str Member],[Sls$]) within set set ())

Not sure what is going on, guess some additional validation is needed.

Thanks again,
Adam.
Title: Re: Dimensional Calculation Issue - Multiselect Prompt changing to Single Select
Post by: CognosPaul on 16 Oct 2014 05:25:43 PM
When you validate the report, you're not passing a valid mun to the parm_Wks parameter. When it prompts you, just copy/paste a member unique name from the hierarchy, and it should validate fine.
Title: Re: Dimensional Calculation Issue - Multiselect Prompt changing to Single Select
Post by: adam_mc on 20 Oct 2014 09:20:12 AM
Thanks Paul....

I got it now!