简体   繁体   中英

visibility of Data in SSRS

This is a follow on from this question:

Insert data in ssrs table in the query

I added in my table manually some data and I created a report in SSRS:

在此处输入图片说明

part of the Query:

UNION ALL
    SELECT *
    FROM  (Values 
    (Cast('2016-07-25 00:00:00.000' AS DATE),71.9,'Team A','Nacht',73.0, 'M101', '',0.0),    
(Cast('2016-07-25 00:00:00.000' AS DATE),71.9,'Team B','Früh',71.0, 'M105', '',84.5)
     )
    AS ExtraData([Datum],[OEETag],[Team],[Schicht],[OEETeam],[Name],[Product],[SystemOEE])

The Problem now is that the manual data displays in every table. How can I set the visibility? I would like to diplays the manual data only on 25.07.2016. I used in my query parameters: @StartDateTime and @EndDateTime

In the visibility settings I tried it with this expression:

=iif(Parameters!StartDateTime.Value="2016-07-25 00:00:00.000", False, iif(Parameters!EndDateTime.Value="2016-07-25 00:00:00.000", False, True))

But not really working.

select *
from(
    SELECT *
    FROM  (Values 
    (Cast('2016-07-25 00:00:00.000' AS DATE),71.9,'Team A','Nacht',73.0, 'M101', '',0.0),    
(Cast('2016-07-25 00:00:00.000' AS DATE),71.9,'Team B','Früh',71.0, 'M105', '',84.5)
     )
    AS ExtraData([Datum],[OEETag],[Team],[Schicht],[OEETeam],[Name],[Product],[SystemOEE])

) as source
where Datum = @startDate 

this is not complete solution but this will let you filter on your datum column based on your parameter.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM