English 中文(简体)
Splitting flat data row into groupings
原标题:

I have a stored procedure that returns hierarchical data in a single long row, for example:

ContractID | ContractName | AssetID | AssetName | UnitID
-----------+--------------+---------+-----------+-------
2          | Test         | 7       | My asset  | 24
5          | Another one  | 51      | Vehicle   | 89

I need to create an SSRS report that displays the data hierarchically, like this:

ContractID | ContractName
2          | Test
    AssetID | AssetName
    7       | My asset
    UnitID
    24

ContractID | ContractName
5          | Another one
    AssetID | AssetName
    51      | Vehicle
    UnitID
    89

Being an SSRS n00b I m stumped - is this even possible, and if so, how? If not, what is the best/recommended way to achieve this?

最佳回答

Eventually solved this by using a subreport... nasty, but it works.

问题回答

Assumes "one row with multiple columns" as per my comment

In your table:

  • define a grouping on ContractID/ContractName Look for "Adding Row Groups to a Table" in this link

  • I think you ll need to define another group on AssetID/AssetName I m assuming multiple UnitID per AssetID/AssetName group

  • UnitID is your detail group

Edit: Sorry: I ve not yet worked with SSRS 2008 and Tablix controls.





相关问题
An error has Occurred During Report proccesing

When I m running the report I m getting that message above. The Report Works fine when I press the "Run Report" Button but I want also to avoid that annoying message that appears when the page loads. ...

Reporting services only displaying the last row

I have built a report pretty basic just a table wiht 45 rows of data. Problem is its only showing one row of data and its the last row. It displays just fine in the dataset and proc. any ...

Show Parameters for Reports In SSRS

I m developing an SSRS in Visual Studio BIDS. In it, I have a link that links to another report (report A). Report A has 4 parameters (dates). When I click on that link, it goes to report A fine, but ...

How to add group, or page field in an existing .rdl report

I have several .rdl reports designed for our client. However, they need new ones, that are relatively similar to the old ones. Differences are in the "group" and "page fields" (these can be changed ...

Report rendering using SSRS in Google Chrome

Hey, In our project, we use SSRS integrated with asp.net forms to render reports. The report looks good in IE. when it comes to google chrome, there re some issues we face such as date picker not ...

热门标签