[英]VBF syntax for SSRS expression cannot figure out proper construct
looking for help on what should be a very basic function. 在什么应该是非常基本的功能上寻求帮助。 I am trying to get a SUM of a specific value, however I do not seem to get the syntax correct.
我正在尝试获取特定值的SUM,但是似乎语法不正确。
Here is what I have 这是我所拥有的
=Sum(Fields!PriorYearSalesDollars.Value - Sum(Fields!PriorYearCost.Value
+Sum(Fields!PriorYearFrtCost.Value)))
However I get an error when trying to sum. 但是,尝试求和时出现错误。 Is there another way to test this also?
还有另一种方法可以测试吗? Each time I modify the expression I then have to save the report and upload to the report server and test again.
每次修改表达式时,我都必须保存报告并上传到报告服务器,然后再次进行测试。 If I do it through the preview function in visual studio it throws a generic error on the whole report.
如果我通过Visual Studio中的预览功能执行此操作,则会在整个报表上引发一般错误。 When running from report server, just this specific column shows #Error
从报表服务器运行时,仅此特定列显示#Error
This is the syntax that works after FIRST changing the column format to numbers where I accidentally did it as currency first. 这是在首先将列格式更改为数字(我不小心首先将其作为货币)后使用的语法。 Not sure why currency didn't work, but this is correct.
不知道为什么货币不起作用,但这是正确的。
=Sum(Fields!PriorYearSalesDollars.Value) - (Sum(Fields!PriorYearCost.Value) + Sum(Fields!PriorYearFrtCost.Value))
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.