COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: babu babu on 07 Dec 2010 05:19:34 PM

Title: Multi column display in report studio
Post by: babu babu on 07 Dec 2010 05:19:34 PM
Hi,
I have 3 fields like A,B,C and measure(Revenue).
The user had to select the fields(single select or multi select) based on that it should display in the report.Please give me the solution.

Thanks!
Anand.
Title: Re: Multi column display in report studio
Post by: cognostechie on 07 Dec 2010 06:04:30 PM
Which version are you using? Cognos 8 or 10? I saw the same question in Cognos 8 Report Studio forum !!
Title: Re: Multi column display in report studio
Post by: babu babu on 07 Dec 2010 07:09:19 PM
Hi,
I am using Cognos 10.1

Thanks!
Anand.
Title: Re: Multi column display in report studio
Post by: cognostechie on 07 Dec 2010 07:45:42 PM
Your questions is not clear. If I am understanding it correct, you want the user to select which columns they want to see in the report.

If that is what you want, it can be done using conditional variable (render variable). You can use the 'Box Type' property to hide and show columns based on which fields the user selected. Create a Value prompt with Static choices for the field names.
Title: Re: Multi column display in report studio
Post by: babu babu on 07 Dec 2010 08:01:06 PM
Hi,
The user need to select the combinations of columns A,B,C in the value prompt(A,B or A,C or B,C).If i use static choice A,B,C and created data item like

case when(?p?='A') then('A')
case when(?p?='B') then('B')
case when(?p?='A') then('C')
end
but the problem is i can select only 1 column based on that i can getting only one column.But the user want to select multiple combinations.
Please give me the solution.

Thanks!
Anand.
Title: Re: Multi column display in report studio
Post by: Gopinath on 08 Dec 2010 07:53:46 AM
create a condition for each field..

condition1 for column A
ParamValue('p') contains 'A'

condition2 for column B
ParamValue('p') contains 'B'

condition3 for column C
ParamValue('p') contains 'C'

and render the columns based on the above conditions