Generate columns dynamically based on different parameters

Okay! this one is tricky, I am working in Reporting Services (SSRS-2005). In the report generated, i want to display values on different columns according to different dates based on the dataset. In the SP i have done the back-end part, like my SP is returning values of one day, 2 days, three days, five days, and a month. The Date parameter is being filled by view (1 day, 2 days, 3 days, 5days, Month)

Now, my issue is how do i populate the columns according to the user choice. i.e. 1 day, 2 days...month. I don't have an option of Groupby as well, since i have to populate
columns now. Groupby only helps to populate rows.

Please suggest.

p.s. attached is image file showing the columns "date(settled and pending)" needs to be generated dynamically. Currently there is only one column for date.
error.JPG
shobhitdixitAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

patriktCommented:
Do you want to have report with table whare there is variable number of columns?
If ihisis a case I know only one solution. Create multiple tables witch different dasources and bind it together. I know not about any dynamic column create in report.

Other solution can be to generate "maximal" datasource which will contain nulls in unused columns. Than you can hide coumns by expression based on report parameters.

Please describe more so I can (may be :) )create more specific colution for you.
0
patriktCommented:
I complain. Asker received answer but not responded. He should respond and state what was wrong on the solution or why it is not related to problem. Delete question is not correct.

Patrik
0
shobhitdixitAuthor Commented:
Sorry, my bad! i should have given some justification to this before requesting a delete.

I did this my way by showing and hiding columns according the parameters passed. Anyways thanks!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2005

From novice to tech pro — start learning today.