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

Need help in Building a parameterized Report.

$
0
0
Hi All, I have a ETL design which has 58 Tasks that it does every day. Each ETL is assigned with a unique [b]WorkQueueRunGroupRunID [/b]and stored in a table.If anyone would like to see the runtimes of individual runtimes of all 58 Task 50 days ago from now, we would select the StartDateTime of particular WorkQueueRunGroupRunID which matches to getdate-50, as below[code="sql"]SELECT TP.TransformationPackageName,WQ.WorkQueueRunGroupRunID,WQ.WorkQueueStartWorkDate,WQ.WorkQueueEndWorkDate, cast((datediff (ss,WQ.WorkQueueStartWorkDate,WQ.WorkQueueEndWorkDate)) as decimal(8,0))/60.0 [RunTime(Minutes)],wq.workqueuestatusFROM CloudBIMetaData.dbo.WorkQueue WQ WITH (NOLOCK)JOIN CloudBIMetaData.dbo.WorkQueueRunGroupTransformationPackage WQRGTP WITH (NOLOCK) ON WQ.WorkQueueRunGroupTransformationPackageID = WQRGTP.WorkQueueRunGroupTransformationPackageIDJOIN CloudBIMetaData.dbo.WorkQueueRunGroup WQRG WITH (NOLOCK) ON WQRG.WorkQueueRunGroupID = WQRGTP.WorkQueueRunGroupIDJOIN CloudBIMetaData.dbo.TransformationPackage TP WITH (NOLOCK) ON WQRGTP.TransformationPackageID = TP.TransformationPackageID--WHERE WQ.WorkQueueRunGroupRunID = '38DBAF7A-0A14-47C4-BD6E-608A94AE34DB' --Copy the WorkQueueRunGroupRunID HereORDER BY WQ.WorkQueueStartWorkDate DESCGO[/code]and then see Give appropriate WorkQueueRunGroupRunID to see runtimes of all 58 tasks. as below[code="sql"]SELECT TP.TransformationPackageName,WQ.WorkQueueRunGroupRunID,WQ.WorkQueueStartWorkDate,WQ.WorkQueueEndWorkDate, cast((datediff (ss,WQ.WorkQueueStartWorkDate,WQ.WorkQueueEndWorkDate)) as decimal(8,0))/60.0 [RunTime(Minutes)],wq.workqueuestatusFROM CloudBIMetaData.dbo.WorkQueue WQ WITH (NOLOCK)JOIN CloudBIMetaData.dbo.WorkQueueRunGroupTransformationPackage WQRGTP WITH (NOLOCK) ON WQ.WorkQueueRunGroupTransformationPackageID = WQRGTP.WorkQueueRunGroupTransformationPackageIDJOIN CloudBIMetaData.dbo.WorkQueueRunGroup WQRG WITH (NOLOCK) ON WQRG.WorkQueueRunGroupID = WQRGTP.WorkQueueRunGroupIDJOIN CloudBIMetaData.dbo.TransformationPackage TP WITH (NOLOCK) ON WQRGTP.TransformationPackageID = TP.TransformationPackageIDWHERE WQ.WorkQueueRunGroupRunID = '38DBAF7A-0A14-47C4-BD6E-608A94AE34DB' --Copy the WorkQueueRunGroupRunID HereORDER BY WQ.WorkQueueStartWorkDate DESCGO[/code]Now, I want to make a SSRS report which would automate this process. Please help me what to put as the parameter in this case. and get runtimes of 58 tasks.All I want is a filter in the report, where users can choose their date, then when they push the ViewReport option they should see all the 58 sessions of that one particular day.

Viewing all articles
Browse latest Browse all 2791

Trending Articles