Note that there are some explanatory texts on larger screens.

plurals
  1. POSRSS Reporting Issues
    primarykey
    data
    text
    <pre><code>SELECT tp.ProjectName, tp.ProjectDescription, dev.FullName as 'Developer' , o.FullName as 'Owner', tp.StartDate, tp.EndDate, tp.ProjectStatus, tp.CompletionPct, Count(tb.ProjectID) as 'NumberofBugs' FROM tblBTProject tp LEFT JOIN tblBTBugs tb ON tp.ProjectID = tb.ProjectID --Get user fullnames by ID LEFT JOIN CollectionsOperationsControl.dbo.tblCOCUser as dev ON tp.Developer = dev.CorpID LEFT JOIN CollectionsOperationsControl.dbo.tblCOCUser as o ON tp.Owner = o.CorpID WHERE CAST(CONVERT(VARCHAR(10), tp.CreationDate, 101) AS DATETIME) BETWEEN @StartDate AND @EndDate AND (tp.Developer IN (SELECT * FROM dbo.fnSplitList(LTRIM(RTRIM(@Developer)), ','))) AND (tp.Owner IN (SELECT * FROM dbo.fnSplitList(LTRIM(RTRIM(@Owner)), ','))) GROUP BY tp.ProjectID, tp.ProjectName, tp.ProjectDescription, dev.FullName, o.FullName, tp.StartDate, tp.EndDate, tp.ProjectStatus, tp.CompletionPct ORDER BY tp.ProjectID </code></pre> <p>In the above code I want to return a count of all instances of tp.ProjectID in tblBTBugs (on the join by tp.ProjectID from tblBTProject) I have done this as a store procedure but in my reporting services when I do a multiple select on the 'Developer' and 'Owner' it shows only one instance of each 'Developer' or 'Owner' and not all the records that match. Is it an issue with the join where it returns only one instance of each? Thanks P.S. I am using SQL Server 2005 for the stored procedure. The parameters for it are @StartDate, @EndDate, @Developer &amp; @Owner fnSplitList helps with the multiple value select of 'Developer' and 'Owner' in SRSS</p> <p>On the report side I am using =JOIN(Parameters!Developer.Value, “,”) for the splitting of records</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload