Assuming you cannot change your stored proc (if you can then you can do this work in there directly).
DECLARE @RowWidth int = 5
CREATE TABLE #t (GroupLabel CHAR(1), SeatLabel int)
INSERT INTO #t EXEC myStoredProc
SELECT
GroupLabel, SeatLabel
, CEILING((SeatLabel -1) / @RowWidth) AS SeatRow
, (SeatLabel - 1) % @RowWidth as colGrp
FROM #t
If your stored proc produced 20 results, A 1-10 and B-10 then the results would be as follows.
Add a mtrix control and then group by GroupLabel and SeatRow as row groups and then add a column group on colGrp.
The final report design looks something like this (the expression is simply GroupLabel and SeatLabel concatenated. ( =Fields!GroupLabel.Value & Fields!SeatLabel.Value
)
And the final output looks like this
It's not 100% but with a bit of formatting it should be close enough.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.