SSRS可以这样做吗?以下是我的意思的一个例子:http://demos.devexpress.com/XtraReportsDemos/DataBinding/PivotGridAndChart.aspx
答案 0 :(得分:2)
你可以做这样的事情,虽然需要一些工作但它会有一些限制。
1. Make a query that will contain all dynamic data field names
2. Create as much row and column groups as the maximum the user needs (4 rows and 2 columns are good in my opinion)
3. Create a param for each row and column. Assign to it the dataset with field names.
Eg. for row1 i created a parameter named R1
4. In each row and column the group should be =Fields(Parameters!R1.Value).value (replace R1 with your parameter's names)
5. Set row and column groups visibility to hidden if the user selection is none
Eg. for row2 the group visibility is =Iif(Parameters!R2.Value="none",true,false)
6. You can also create a param that will allow the user to select the measure he wants to see (value, quantity etc)
另请参阅:http://www.simple-talk.com/sql/reporting-services/advanced-matrix-reporting-techniques/
这就像我做的那样是一个支点