Link to home
Start Free TrialLog in
Avatar of shobhitdixit
shobhitdixit

asked on

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
Avatar of patrikt
patrikt
Flag of Czechia image

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.
SOLUTION
Avatar of patrikt
patrikt
Flag of Czechia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial