SSRS报告中的列分组

时间:2017-08-10 14:41:48

标签: sql tsql reporting-services grouping ssrs-grouping

WITH Members as (
select Members, ReportingMonth from Members ) ,

Calls as (
select Received, Answered, Abandoned,ReportingMonth from Calls ) ,

Rate as (
select Rate from Rate ) ,

Complaints as (
select ComplaintsReceived, ComplaintsProcessed,ReportingMonth from Complaints ) 


select M.Members,
M.ReportMonth,
R.Rate,
C.Received,
C.Answered, 
C.Abandoned, 
CO.ComplaintsReceived, 
CO.ComplaintsProcessed

from Members as M
left join  Calls C ON M.ReportMonth = C.ReportMonth
left join Rate R ON M.ReportMonth = R.ReportMonth
LEFT JOIN Complaints CO ON M.ReportMonth = CO.ReportMonth

朋友们,我将以上查询作为我的月度SSRS报告的数据集。我必须通过ReportingMonth对报告进行分组。我试图通过列分组对它进行分组,但它没有给我我想要的结果。我想通过报告我在SSRS报告中的列组中使用的月份来对选择列表中的所有数据进行分组。我在选择列表中看到它来自成员cte所以列组只填充成员数据。

有没有办法按报告月份对选择列表中的所有字段进行分组?

0 个答案:

没有答案