Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/reporting-services/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/date/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Reporting services Reporting Services中Axis中的自定义标签格式_Reporting Services_Ssrs 2012 - Fatal编程技术网

Reporting services Reporting Services中Axis中的自定义标签格式

Reporting services Reporting Services中Axis中的自定义标签格式,reporting-services,ssrs-2012,Reporting Services,Ssrs 2012,目前,我在SSRS中为一个轴创建多个格式时遇到问题。目前的情况是,我有一个措施,可以带来120万(货币)的最大值,但根据时期的不同,平均值为50万。最初,我将labelformat属性设置为0,M,但当该值小于一百万时,这不会带来正确的比例 这是我尝试过的当前解决方案: =IIF(Sum(Fields!Current_Year.Value, "CustomerSales") > Sum(Fields!Last_Year.Value, "CustomerSales"), IIF(Sum(F

目前,我在SSRS中为一个轴创建多个格式时遇到问题。目前的情况是,我有一个措施,可以带来120万(货币)的最大值,但根据时期的不同,平均值为50万。最初,我将labelformat属性设置为
0,M
,但当该值小于一百万时,这不会带来正确的比例

这是我尝试过的当前解决方案:

=IIF(Sum(Fields!Current_Year.Value, "CustomerSales") > Sum(Fields!Last_Year.Value, "CustomerSales"), 
IIF(Sum(Fields!Current_Year.Value, "CustomerSales") < 1000000, "0,K", "0,,M"), 
IIF(Sum(Fields!Last_Year.Value, "CustomerSales") < 1000000, "0,K", "0,,M"))

Public Function LabelCustomFormat(ByVal CY As Integer, ByVal LY As Integer) As String
   If CY > LY Then
    If(CY < 1000000) THEN
        Return "0,K"
    Else
        Return "0,,M"
    End If
   Else 
    IF(LY < 1000000) THEN 
        Return "0,K"
    Else
        Return "0,,M"
    End If
   End If
End Function
=IIF(总和(字段!当前年值,“CustomerSales”)>总和(字段!上一年值,“CustomerSales”),
IIF(总和(字段!当前年值,“客户销售额”)<1000000,“0,K”,“0,M”),
IIF(总和(字段!去年值,“客户销售额”)<1000000,“0,K”,“0,M”))
公共函数LabelCustomFormat(ByVal CY为整数,ByVal LY为整数)为字符串
如果是这样的话
如果(CY<1000000),则
返回“0,K”
其他的
返回“0,M”
如果结束
其他的
如果(LY<1000000),则
返回“0,K”
其他的
返回“0,M”
如果结束
如果结束
端函数

在图表的一个轴上有可能有不同的刻度吗?如果是,请帮助。

在尝试在轴上进行动态缩放但未成功后,我将标签格式保留为表达式
0,M
,并将间隔设置为a1M,而不是500K

“CustomerSales”指的是什么?CustomerSales是我用于报表的数据集。如果在数据集名称的末尾使用图表名称,我希望IIF代码能够工作。它会引发错误,因为SUM函数所期望的范围是与字段相关的数据集。