Quantcast
Channel: SQL Server Reporting Services, Power View 포럼
Viewing all articles
Browse latest Browse all 24955

very urgent:number of columns change based on a parameter

$
0
0

hello all,

                  I need to design a report where the number of columns will change based on a parameter.I have stored procedure as a source for data set.this procedure accepts a input parameter ID and does some pivot logic inside and generates varying columns based on input ID parameter.for example my output looks like below for different input parameter values.

Parameter:

ID=1

dataset output:

X     Y      Z      A     B     C

1     2        3      4     5    6

2      3        4       5     6     7

7      6         5       4     3      2

Parameter:

ID=2

dataset output:

X     Y      Z      A     B     C      D     E      F     

1     2      3      4     5    6       1     2     3

2      3     4       5     6     7     4     5     6

7      6    5       4     3      2     2     3    4

columns  D,E,F got added in the data set when the parameter value is 2.here X,Y,Z,A,B,C are the fixed columns.there may be change in number of columns for different input parameter.

My question is there any way that we can achieve this that there will be change in number of columns based on a parameter in my report?

Thanks.


Viewing all articles
Browse latest Browse all 24955

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>