Can SSRS use pivot tables such like excel drag and drop

≯℡__Kan透↙ 提交于 2019-12-24 23:45:04

问题


Can SSRS do this?Here is an example of what I mean: http://demos.devexpress.com/XtraReportsDemos/DataBinding/PivotGridAndChart.aspx


回答1:


You can make something like this, althought needs some work and it will have some limitations.

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)

See also: http://www.simple-talk.com/sql/reporting-services/advanced-matrix-reporting-techniques/

This is something pivot like I made



来源:https://stackoverflow.com/questions/7258346/can-ssrs-use-pivot-tables-such-like-excel-drag-and-drop

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!