0

Currently I'm having trouble creating multiple format in SSRS for one Axis. The current situation is that I have a measure that could bring a maximum value of 1.2M (Currency) but an average of 500K depending the period. Originally I have the labelformat property set to 0,,M, but this doesn't bring the correct scale when the value is less than a million.

This are the current solution I have tried:

=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

Is it possible to have the different scale in one Axis of a Chart? If so, please help.

4

1 回答 1

0

好吧,在尝试在轴上进行动态缩放但没有成功之后,我将标签格式与表达式一起保留,0,,M并将间隔设置为1M而不是500K

于 2014-02-13T18:35:17.433 回答