How can I append the results of additional queries to an SSRS report?

后端 未结 2 1893
野性不改
野性不改 2021-01-28 05:56

I am generating an SSRS report whose results are displayed like so:

I need to append similar query results (same exact query, one different parameter value) to

相关标签:
2条回答
  • 2021-01-28 06:24

    Based on what is written here, this is how I accomplished this:

    I created a new report based on the existing one, and then added a Subreport and then dragged the existing (original) report onto it (I dragged "VariancePricebyProduct_Facelift.rdl" onto the subreport in "VariancePricebyProduct_Facelift_WithSubreports.rdl"). Then I selected the context menu item "Subreport Properties" and added a parameter ("Unit"), providing it with a "hard-coded/baked-in" value ("CHOPHOUSE") different from the one to be provided by the user for the main report.

    Then, since I want to keep the same date values from the existing report, I added two more parameters to the subreport and set them to use the same values for the date range as those used there in the main report by selecting the "formula" ("fx") button and 2-clicking the appropriate parameter to be used as the passed-in (tramp) value:

    That works. Just to make it plainer, here is how it looks at design time:

    The mess at the top is "VariancePricebyProduct_Facelift.rdl"; the bit below is a Textbox/Label for the subreport and then the subreport itself.

    And here is how the data looks where the original/base report finishes and the subreport begins:

    0 讨论(0)
  • 2021-01-28 06:33

    Solution: COLUMN GROUPING

    If I have understood your question correctly, you are expecting to show those 3 columns repeatedly for different set of values. All you need to do is put those 3 columns in a group (Column Group) and Group by on whatever "Field/Parameter" you want to it repeat. Let me know how it goes!!

    0 讨论(0)
提交回复
热议问题