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
Reporting services 自定义格式SSR_Reporting Services - Fatal编程技术网

Reporting services 自定义格式SSR

Reporting services 自定义格式SSR,reporting-services,Reporting Services,我有这些数据 city value seoul 2.42999 tokyo 5.70109 如果城市是首尔,我想将数字的格式设置为0位小数,如果城市是东京,我想将数字的格式设置为3位小数 我试过这样的东西,但没用 =IIF(Fields!CityName.Value="seoul",N0,N3) 格式说明符是字符串,添加引号。 此外,您可能需要修剪字段值 =IIF(Trim(Fields!CityName.Value)=“首尔”、“N0”、“N3”)

我有这些数据

city        value 

seoul       2.42999
tokyo       5.70109
如果城市是首尔,我想将数字的格式设置为0位小数,如果城市是东京,我想将数字的格式设置为3位小数

我试过这样的东西,但没用

=IIF(Fields!CityName.Value="seoul",N0,N3)

格式说明符是字符串,添加引号。 此外,您可能需要修剪字段值

=IIF(Trim(Fields!CityName.Value)=“首尔”、“N0”、“N3”)