a SSRS 2008 problem:How to sum with a condition

穿精又带淫゛_ 提交于 2021-02-11 15:26:43

问题


I have a SSRS report in which there is two column Current_Product and TempAnnSaving. Current_product has value current product and thier match. that means each current product have a match row or it may be more than one row.Each match row has a TempAnnSaving value in TempAnnSaving column.Now at the end of the report i have to show the total sum of TempannSaving,but there is a condition for sum--i have to sum only first match of each current product . here is image http://www.imgplace.com/viewimg121/4385/96unled.png


回答1:


aI guess that the "Current Product" is in the group, if so then do SUM provided by
=IIF (CountRows (Filed!namefield, "nameGroup") = 1, SUM (Field!namefield, "nameGroup"),Nothing)



来源:https://stackoverflow.com/questions/6834326/a-ssrs-2008-problemhow-to-sum-with-a-condition

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!