[英]Percentages in SSRS - Exporting to excel
According to this answer I need to put my custom number format like this in order to see a % symbol 根据此答案,我需要像这样输入我的自定义数字格式,以便查看%符号
#,0\%
The output looks fine in browsers (lets say, I see 12% which is correct) the problem is when I export the report to excel, I see this: 在浏览器中输出看起来不错(可以说,我看到的是12%),问题是当我将报告导出到excel时,我看到了:
1.200\%
How can I see 12% in both places? 我如何在两个地方都看到12%?
If you remove the slash, and use only "#,0%", that will work. 如果您删除斜杠,并且仅使用“#,0%”,那将起作用。
This will turn the value ".12" into "12%". 这会将值“ .12”变成“ 12%”。
If you want to add a space between "12" and "%" use "#,0 %". 如果要在“ 12”和“%”之间添加空格,请使用“#,0%”。
If you want to include 2 decimal points, use "#,0.00%" (which will get you "12.00%"). 如果要包括2个小数点,请使用“#,0.00%”(这将使您获得“ 12.00%”)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.