如何在ssrs中的x轴的范围条形图中显示月份四分之一的q [1-4]

时间:2015-10-08 10:39:24

标签: reporting-services report ssrs-2012

我在ssrs中创建了一个范围条形图。我想用quater格式显示x轴标签,即q1为jan,q2为apr,q3为7月,q4为oct

这是截图。我需要从1月1日开始改变。

screenshot2

screenshot3

1 个答案:

答案 0 :(得分:0)

我对你的数据集字段一无所知,所以我猜。

在x轴标签中尝试此表达式:

=Switch(
Fields!Month.Value="Jan","Q1",
Fields!Month.Value="Apr","Q2",
Fields!Month.Value="Jul","Q3",
Fields!Month.Value="Oct","Q4"
)

编辑:在范围图表中将表达式添加到标签x轴。

  1. 右键单击“类别组合集”(在我的案例中为“月”)
  2. enter image description here

    1. 在常规标签中,转到标签文本框并添加表达式。
    2. enter image description here

      1. 输入我提供的表达方式。 (在我的情况下,月份是一年的日历编号,你应该使用上面的表达式)
      2. enter image description here

        1. 这是预览。
        2. enter image description here

          如果这有用,请告诉我。