Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 20764

Collapsing rows to create a string

$
0
0

I am using a view as my data-set that captures requests to create new classes.  One of the items captured is the grade(s) affected.  The view captures each affected grade for a particular request as its own row.  In the report I'm building to then display the data, I already have the report set to group by request, I want to take the column for affected grade levels and turn it into a string.  so instead of 

Row 1 - request 1 - grade 9 - (many other columns of data)row 2 -  request 1 - grade 10 - (many other columns of data)
row 3 - request  - Grade 11 - (many other columns of data)

I want

Row 1 - request 1 - grades 9, 10 - (may other columns of data)
Row 2 - Request 2 - Grade 11 - (Many other columns of data)

I think I can do this with UNPIVOT but all the examples I see are for summing numeric data or some other such mathematical function.

Am I barking up the wrong tree or going down a blind alley here?


Viewing all articles
Browse latest Browse all 20764

Trending Articles



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