Click here to Skip to main content
15,892,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

Need some help in SSRS(from Cube) 2008 for a report requirement....
I have a report which have 3 columns...say col1,col2,col3.The requirement is...if the user gives the order of the columns as 2,3,1...it should reorder the cols as col2,col3,col1.


-Lucky
Posted
Updated 23-Jan-10 7:21am
v3

1 solution

Ok, first of all you would need to add some parameters so if the user selects Column 1 = Choice a, the other parameters allow Choice b and c, and so on.

When you have that in place you need to add a Switch(Case) statement into the headers and fields of the colums, (Could be an Iff, if you wanted)

So basically the header expression would be something like,

=iif(Parameter.Col1 = "optiona", "Option a field",
iif(Parameter.Col1 = "optionb", "Option b field","Option c field"))

and then the same for col 2 and 3.

Its a bit rusty, but you get the idea.

That was the user can select what to show in the columns.

Hope this helps.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900