COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: suhas_bhat on 13 Oct 2010 04:46:06 AM

Title: Parsing errors while adding a filter/slicer
Post by: suhas_bhat on 13 Oct 2010 04:46:06 AM
Hi all,
  i have 2 prompts A and B. I am using a dimensional package, the source for these prompts is the root hierarchy itself and they have suitable filters to get different data in both prompts.

Now for the report query i have added a filter/slicer like this
if
(?A? is null) and (?B? is not null)
then
([Cube].[dimension].[HierarchyI] -> ?B?)
else if
(?A? is not null) and (?B? is null)
then
([Cube].[Dimesion].[HierarchyI] -> ?A?)
else if
(?A? is not null) and (?B? is not null)
then
([cube].[Dimension].[HierarchyI] -> ?B?)
I am getting parsing errors for this.
Assuming Cognos behaves funnily with multiple if-else blocks is there any other way to write the above code.
Please help..
Title: Re: Parsing errors while adding a filter/slicer
Post by: MFGF on 15 Oct 2010 03:23:12 AM
What are the errors you are getting?

MF.
Title: Re: Parsing errors while adding a filter/slicer
Post by: suhas_bhat on 18 Oct 2010 11:49:19 PM
We managed to solve the errors.. thank you