COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: dssd on 16 Jan 2012 06:52:36 AM

Title: Dynamic Grouping
Post by: dssd on 16 Jan 2012 06:52:36 AM
Can i have dynamic grouping in a report. As in based on a prompt change my grouping criteria
Title: Re: Dynamic Grouping
Post by: Lynn on 16 Jan 2012 07:38:35 AM
Yes. Create a data item with an expression that varies depending on the prompt response.


case ?GroupingPrompt?
when 'A' then [Customer]
when 'B' then [Product]
when 'C' then [Date]
else [Customer]
end