SSRS:显示更改每台机器的名称

时间:2016-08-23 07:52:25

标签: sql reporting-services

我在SSRS中创建了这个表:

enter image description here enter image description here

我想仅在计算机更改ProductName而不是所有格式时显示。在上图中我只想显示: 08.01.16 - M102 - Roller  11.01.16 - M102 - 空白

我的问题:

SELECT 
    c.Datum,
    c.Team,
    c.Name,
    c.Product,
    c.System

    FROM (
    Select 
intervaldate as Datum
,tsystem.Name as Name
,ProductName As Product
,teamname as Team
,SUM(GoodUnits)  / NULLIF(SUM(TheoreticalUnits) , 0.0)* 100 As System

from tCount 
where IntervalDate >= @StartDateTime AND IntervalDate <= @EndDateTime
and systemID in (Select SystemID from tSystem whereViewID in (21,25,6))     
group by intervaldate, teamName, tsystem.Name, ProductName
) c

inner join(
SELECT 
    sc.Name as Name

    FROM tCalendar sh
    INNER JOIN tSchedule sc ON (sc.ID = sh.ScheduleID)
    WHERE Scheduled != 0
) p ON p.Name = c.Name

我想在每台机器上只显示此更改。 是否可以在表格中显示它?

0 个答案:

没有答案