I'm trying to understand how ssrs formats the way data is presented. I have a table in ssms and a sp that gets the data from that table. The sp code is:
select *
from [CustData]
where 1 = 1
and (reportYear = @dbParam_reportYear or reportYear = @dbParam_reportYear-1 )
and marketCode=@dbParam_marketCode
and brandName=@dbParam_brandName
and (contactSegmentDesc=@dbParam_contactSegmentDesc)
order by reportYear ASC, reportMonth ASC
This obviously returns the data row by row i.e. if the report year param is 2014, then the rows with 2014 and then rows with 2013 data.
This is then used in ssrs in a report but the data is presented by columns. The column group is like [segmentDesc] [reportMonth] [reportYear]
followed by all the data that is retrieved.
I need to know what is formatting the data output from row by row to column by column presentation. I do suspect its the column groups but need to confirm. I am new to this.
Getting difference of the values:
Month
as parent group andYear
as child group. – alejandro zuleta