Reputation: 3932
Above is how my report looks, the part in yellow in hidden, and is only shown when the user clicks the + icon on the [name]. the result is basically the percentage difference from the Past [X] - [TERM] i.e there is a dropdown with, [weeks, months, days, hours] and a textbox of qty.
so choosing qty = 4 and term = weeks will delivery a result set spread over 4 weeks based on the parent result sets date range and name ID
I wish to populate here the number of rows, dependant on the value set by the user and the data will be from a dataset.
this is my first bash at SSRS so please no half cut answers, that just lead to more questions about the answer given :-) if this makes sense.
Thanks
Upvotes: 0
Views: 1759
Reputation: 3932
Did some research and the following solves this problem.
Create query as normal, create a sub query, add sub query to table set sub query param/s as values from original / parent query
alas you have auto-generated columns, for extra queries based on data from the original.
I found that this seems to be a good resource at explaining things better:
http://www.codeproject.com/Articles/195017/SSRS-Series-Part-II-Working-with-Subreports-DrillD
Upvotes: 1