COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: suhas_bhat on 08 Sep 2010 01:06:06 AM

Title: Accessing child memebers from prompt page
Post by: suhas_bhat on 08 Sep 2010 01:06:06 AM
Hi,
  I am using a dimensional package and have a requirement to display the child member of the value selected in prompt page.
I tried addding filter
[cube].[dimension].[hierarchy] = (firstChild(?param_name?))
but i get an error message when i run the report
i.e. Invalid prompt use was found in expression="firstChild(?Param_name?)". Error processing filter 'members([cube].[dimension].[hierarchy]) = firstChild(?Param_name?)'
btw the source for the prompt is the hierarchy itself.
Any suggestions??
Title: Re: Accessing child memebers from prompt page
Post by: MFGF on 08 Sep 2010 10:09:53 AM
Hi,

It looks to me like you are attempting to use a relational reporting technique (detail filter) on a dimensional source, which is really not a good idea.

Instead of adding a filter, try adding a Query Calculation to your report (crosstab?) with the expression

firstChild([cube].[dimension].[hierarchy] -> ?param_name?)

Does this give you the desired result?

MF.
Title: Re: Accessing child memebers from prompt page
Post by: suhas_bhat on 08 Sep 2010 11:47:55 PM
Hi,
  Thank you, that worked fine.