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

5 parameters in a report

$
0
0
Hi All, I'm creating a basic report with 5 parameters. I want to populate the drop down menu of the report according to previous selected parameter value.Example: I'm entering below script in dataset Query.[code="sql"]If @ApplicationName = 'MSCloud'SELECT Networkname,SnapshotTime,ProcessUsePct FROM SqlResourceUseHistoricView nolockWhere NetworkName = @ServerName AND Environment = @EnvironmentName AND SnapshotTime >= @StartDateTimeAND SnapshotTime <= CONVERT(date, DATEADD(dd, 1, @EndDateTime), 101)order by SnapshotTime descIf @ApplicationName = 'Velocity'SELECT Networkname,SnapshotTime,ProcessUsePct FROM SqlResourceUseHistoricView nolockWhere NetworkName = @ServerName AND Environment = @EnvironmentName AND SnapshotTime >= @StartDateTimeAND SnapshotTime <= CONVERT(date, DATEADD(dd, 1, @EndDateTime), 101)order by SnapshotTime desc[/code]1st parameter: [b]ApplicationName[/b]: MSCloud or Velocity2nd Parameter: [b]Environment[/b]: PROD or UATOnce these two parameters are selected by the user, he should see only that particular [b]ServerName [/b]drop down menu.Example: List of servers of Velocity are VelocityPROD and VelocityUATList of servers of MSCloud are MSCloudPROD and MSCloudUATNow if I select [b]ApplicationName [/b]'MSCloud' , [b]Environment [/b]'PROD', I should see only MSCloudPROD in the [b]ServerName [/b]drop down menu. Please help what setting should I do in the parameter [b]ServerName[/b]

Viewing all articles
Browse latest Browse all 2791