Danielbryanuk
Technical User
Hi all
Using 8.3 Cognos report studio.
I was someone could tell what is wrong with the follwing case statement, used in a detail filter in a report:
"CASE
WHEN ?pID? between 73 and 84
THEN ([GMT Product Overview by Asset Class].[Product Overview Facts by Asset Class].[Year] = 2006)
WHEN ?pID? between 85 and 96
THEN ([GMT Product Overview by Asset Class].[Product Overview Facts by Asset Class].[Year] = 2007)
WHEN ?pID? between 97 and 108
THEN ([GMT Product Overview by Asset Class].[Product Overview Facts by Asset Class].[Year] = 2008)
ELSE ([GMT Product Overview by Asset Class].[Product Overview Facts by Asset Class].[Year] = 2009)
END"
I'm not sure if I should be using such a construct in a detail filter? Does the THEN or ELSE clause work in brackets?
Thanks for your help
Dan
Using 8.3 Cognos report studio.
I was someone could tell what is wrong with the follwing case statement, used in a detail filter in a report:
"CASE
WHEN ?pID? between 73 and 84
THEN ([GMT Product Overview by Asset Class].[Product Overview Facts by Asset Class].[Year] = 2006)
WHEN ?pID? between 85 and 96
THEN ([GMT Product Overview by Asset Class].[Product Overview Facts by Asset Class].[Year] = 2007)
WHEN ?pID? between 97 and 108
THEN ([GMT Product Overview by Asset Class].[Product Overview Facts by Asset Class].[Year] = 2008)
ELSE ([GMT Product Overview by Asset Class].[Product Overview Facts by Asset Class].[Year] = 2009)
END"
I'm not sure if I should be using such a construct in a detail filter? Does the THEN or ELSE clause work in brackets?
Thanks for your help
Dan