如何计算列不同值的差异百分比
有一列 - 当前产品 - 根据库存列的值有两个值。这意味着当库存为空时,它被称为“当前产品”,当它有一定价值时,它被称为“匹配”。像这样......
==================================================================
Current Product Stocked AnnualSavings Sodium
Current product 450.00
Match yes 1234.00 432.00
现在SSRS 2008 R2报告中有一个钠文本框为空。当用户输入 10 那么我们必须检查钠的匹配值是否比当前产品低 10% 且等于当前产品的匹配值。
我怎样才能做到这一点...?
There is a column - Current Product - which has two values according to the value of stocked column. That means when stocked is empty then it is called 'current product' and when it has some value then it is called 'Match'. like this.....
==================================================================
Current Product Stocked AnnualSavings Sodium
Current product 450.00
Match yes 1234.00 432.00
Now there is a sodium text box in SSRS 2008 R2 report with a null. When a user enters 10
then we have to check match value of sodium is 10% less and equal to that of current product.
How can i do this...?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果我正确理解您的要求,下面的查询将作为 SSRS 数据集运行。我想你想从表中选择任何行,其中 Stocked 字段不为空,并且钠在“当前产品”的特定范围内。该范围由用户指定为报告的参数。
在数据集查询中过滤它比在报告本身中过滤要容易得多,因为它取决于记录之间的值比较。
我认为如果我错过了这一点,在示例表中添加更多行会有所帮助。
If I understand your requirements correctly the query below would work as an SSRS dataset. I think you want to select any rows from the table that have the Stocked field not null, and the Sodium within a certain range of "Current Product" The range is specified by the user as a parameter to the report.
It will be much easier to filter this in the query of the data set then in the report itself, since it depends on comparing values between records.
I think adding a few more rows to your example table would help if I missed this.