在SSRS图表中格式化K,M

时间:2016-04-06 14:42:08

标签: reporting-services ssrs-2008-r2 reportbuilder3.0

我正在尝试为图表添加K,M的格式。

=IIF(Sum(Fields!orderedqty.Value * Fields!new_price.Value, "capexPO") >=1000000 , "'€' #,0,,"+"m",
IIF (Sum(Fields!orderedqty.Value * Fields!new_price.Value, "capexPO") >=1000, "'€' #,0,"+"k",
IIF (Sum(Fields!orderedqty.Value * Fields!new_price.Value, "capexPO") >=0," '€' 0",
IIF (Sum(Fields!orderedqty.Value * Fields!new_price.Value, "capexPO") <-1000000, "'€' #,0,,"+"m",
IIF (Sum(Fields!orderedqty.Value * Fields!new_price.Value, "capexPO") <-1000, "'€' #,0,"+"k", "0"
)
)
)
)
)

但是,这不适用于1455537.13等值。在这种情况下,它显示$ 0M。

我做错了什么?

0 个答案:

没有答案