SSRS:在图表中显示季度

时间:2016-02-03 12:58:08

标签: sql reporting-services

我想在y轴上显示季度而不是月份:

[![在此处输入图像说明] [1]] [1]

我该怎么办呢。

以下是我的询问:

SELECT *
    FROM (
    Select intervaldateMonth as Month, intervaldate as DateValue, intervalDateWeek as Datum,

SUM(GoodUnits) As GoodUnits,
SUM(TheoreticalUnits) As TheoreticalUnits,


from Count inner join tsystem ON Count.systemid = tsystem.id
    where IntervalDateMonth >=getdate()-420
AND ((DATEPART(dw, IntervalDate) + @@DATEFIRST) % 7) NOT IN (0,1)
    and tsystem.ID in  (Select SystemID from tSystemViewSystem where SystemViewID = 2)                          
    group by intervaldatemonth, intervaldate, intervaldateweek
    ) as s

1 个答案:

答案 0 :(得分:1)

要获取日期的四分之一,您可以在类别组中使用此表达式:

="Q" & DatePart(DateInterval.Quarter,Fields!DateValue.Value) 

<强>更新

转到类别组属性:

enter image description here

并使用LabelGroup on属性中的表达式。

enter image description here

你会得到这样的东西:

enter image description here

如果有帮助,请告诉我。