报表构建器在追溯报表时给出错误

时间:2019-02-16 14:03:19

标签: sql reportbuilder

感谢这个很棒的网站,它确实帮助了我解决所有问题。 iam使用报表生成器为Office版本准备仪表板。 IAM使用以下查询

    declare @variable varchar
    declare @totalcount int

CREATE TABLE #MyTempEmployeeTable(version1  varchar(MAX),count1 int ,displayname0 varchar(max))
insert into #MyTempEmployeeTable(version1,count1,displayname0)
SELECT  DISTINCT (LEFT(Version0, LEN(Version0) - CHARINDEX('.', REVERSE(Version0)))), Count(DISTINCT arp.ResourceID) AS 'Count', DisplayName0
FROM fn_rbac_Add_Remove_Programs(1)  arp 
--JOIN fn_rbac_FullCollectionMembership(1)  fcm on arp.ResourceID=fcm.ResourceID 
WHERE DisplayName0 like '%Microsoft Office Professional plus%'
--and fcm.CollectionID=@CollID 
GROUP BY DisplayName0, Publisher0, Version0  


select @totalcount= sum(count1) from #MyTempEmployeeTable
--select * from #MyTempEmployeeTable
SELECT version1 as Version,sum(count1) as Modelcount,
(CAST((CAST(sum(count1) AS DECIMAL(18,2))/
     CAST((@totalcount) AS DECIMAL(18,2))) *100 as DECIMAL(18,2))) as 'Percent','%' as per,Displayname0
 from #MyTempEmployeeTable 
group by version1,displayname0
drop table #MyTempEmployeeTable

输入iam进入查询

enter image description here

现在仪表板显示如下

enter image description here

现在的问题是主要版本15.0.4569在通过追溯报表时出现问题,所有其他版本均正常运行,因为它们的行数较少。 请找到错误快照

enter image description here

iam无法理解该版本何时在所有其他版本上都有效,为什么该版本b不能正常工作(最大行数)。 请帮助

0 个答案:

没有答案