COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: Manu0521 on 03 Apr 2014 07:29:09 AM

Title: Value prompt with values from different levels
Post by: Manu0521 on 03 Apr 2014 07:29:09 AM
Hi ,
I need to show a value prompt which contains values form different levels but from same hierearchy.

Say 3 values from level1 , 2 values from level3 and 2 values from level 4.

How do i achieve this and how should i pass this value to my main query based on user selection.

Thanks,
Title: Re: Value prompt with values from different levels
Post by: MFGF on 03 Apr 2014 08:57:38 AM
Hi,

Define a calculated item in your query driving the value prompt and use the expression set(xxx,xxx,xxx) where each xxx is the relevant member from the hierarchy. You can mix members from different levels. Set this as the Use value of your prompt.

In the report itself, add a calculation with the expression [your hierarchy] -> ?parameter?

Make sure the prompt is setting the same parameter.

Cheers!

MF.
Title: Re: Value prompt with values from different levels
Post by: Manu0521 on 03 Apr 2014 09:47:32 AM
It worked thanks a lot.

Thanks,