Quantcast
Channel: SQLServerCentral » Reporting Services » Reporting Services » Latest topics
Viewing all articles
Browse latest Browse all 2791

Filter on Detail Group SSRS 2008

$
0
0
I have a Tablix on an SSRS 2008 report that is populated by the following dataset.[code="sql"]SELECT 642 AS [TicketID], NULL AS [TrainingNotes], 3 AS [TicketProjectTypeID], 'Project A' AS [TicketProjectTypeDescription], 17 AS [TicketSubProjectTypeID], 'SubProject 1' AS [TicketSubProjectTypeDescription], cast('2014-08-08' as date) AS [TicketCreationDate], 1 AS [TrainingRequired], 1 AS [TicketCount] UNION ALLSELECT 714 AS [TicketID], NULL AS [TrainingNotes], 3 AS [TicketProjectTypeID], 'Project A' AS [TicketProjectTypeDescription], 17 AS [TicketSubProjectTypeID], 'SubProject 1' AS [TicketSubProjectTypeDescription], cast('2014-08-12' as date) AS [TicketCreationDate], 0 AS [TrainingRequired], 1 AS [TicketCount] UNION ALLSELECT 748 AS [TicketID], NULL AS [TrainingNotes], 3 AS [TicketProjectTypeID], 'Project A' AS [TicketProjectTypeDescription], 17 AS [TicketSubProjectTypeID], 'SubProject 1' AS [TicketSubProjectTypeDescription], cast('2014-08-14' as date) AS [TicketCreationDate], 1 AS [TrainingRequired], 1 AS [TicketCount] UNION ALLSELECT 826 AS [TicketID], NULL AS [TrainingNotes], 3 AS [TicketProjectTypeID], 'Project A' AS [TicketProjectTypeDescription], 17 AS [TicketSubProjectTypeID], 'SubProject 1' AS [TicketSubProjectTypeDescription], cast('2014-08-15' as date) AS [TicketCreationDate], 1 AS [TrainingRequired], 1 AS [TicketCount] UNION ALLSELECT 1169 AS [TicketID], NULL AS [TrainingNotes], 3 AS [TicketProjectTypeID], 'Project A' AS [TicketProjectTypeDescription], 17 AS [TicketSubProjectTypeID], 'SubProject 1' AS [TicketSubProjectTypeDescription], cast('2014-08-26' as date) AS [TicketCreationDate], 0 AS [TrainingRequired], 1 AS [TicketCount] UNION ALLSELECT 1315 AS [TicketID], NULL AS [TrainingNotes], 3 AS [TicketProjectTypeID], 'Project A' AS [TicketProjectTypeDescription], 19 AS [TicketSubProjectTypeID], 'SubProject 2' AS [TicketSubProjectTypeDescription], cast('2014-08-30' as date) AS [TicketCreationDate], 0 AS [TrainingRequired], 1 AS [TicketCount][/code]There are filters on the tablix for TicketCreationDate (between 8/1/2014 and 8/31/2014), TicketProjectTypeID (3), and TicketSubProjectTypeID (17,19). The data above is the result of the filtering. The Tablix is a simple table, with a group and heading for Project and SubProject, with sums of TicketCount and TrainingRequired. The detail group consists of the TicketID, the TicketCreationDate, and the TrainingNotes. I only want to display the Detail group if TrainingRequired =1. I put a filter on the Detail Row Group with this criteria, but now the SubProject group for SubProject 2 disappears (where there is only one record in the dataset and TrainingRequired = 0). I do not knw why the parent group of SubProject is affected by the filtering of the Details group. If I recall, I have done something similar to this before and did not experience anything unusual.Any ideas?Thanks,Paul

Viewing all articles
Browse latest Browse all 2791

Trending Articles