Just picking up SRS for the first time, so please excuse me if my question turns out to be dumb. If I have a Field that contains a csv (comma seperated variable) list of integers, is there any way to chart those values within a report?
I.e:
SELECT id, value FROM DataTable WHERE id = @.ValueId
id value
-- --
1 1,2,3,4,5,6,7,8,9,10,11
(1 row(s) affected)
I can do something like =split(Fields!Value.Value, ",") to get the individual data points out, but I'm not sure how to create a data set out of them so that I can point the chart to it. Changing the DB schema to accomidate the report is kinda out of the question at this point.
Thanks!
You could rewrite your query to split "Value" into numbers and group it by "ID", something like this:
1, ‘1,2,3,4’
2, ‘1,1,2’
1, 1
1,2
1,3
1,4
2,1
2,1
2,2
You can use split() but I don't think you can use it in the chart. It won't acceppt string[] as a value.
No comments:
Post a Comment