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 将总计添加到重复值中_Reporting Services - Fatal编程技术网

Reporting services 将总计添加到重复值中

Reporting services 将总计添加到重复值中,reporting-services,Reporting Services,我有这样的要求 claimnumber -- amount -- category ----------- ------ -------- 123 -- 10 -- A 123 -- 10 -- B 456 -- 10 -- C 456 -- 10 -- B 我想报告分组数据,如下所示, 第2号不同索赔 总共20

我有这样的要求

claimnumber   --  amount -- category    
-----------     ------  --------     
123     --         10  --    A   
123     --         10   --   B    
456     --         10   --   C    
456    --          10  --    B
我想报告分组数据,如下所示, 第2号不同索赔 总共20英镑

Total Count  --  Total Amount
-----------    ------------   
2           --    20
SSR是如何实现的?

这应该可以:

select 
count(claimnumber) as [total count],
sum(amount)        as [total amount] 
from tablename
group by claimnumber

我必须根据ssrs报告中的第一个表(数据集)而不是sql生成第二个表。