Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

Query that needs to be used in Cascading parameters report

$
0
0

Hi All,
I need a small help in SSRS report.
My report has 5 parameters. 
@ApplicationName - 4 Names comes in the drop down menu
@EnvironmentName 
@ServerName 
@StartDateTime 
@EndDateTime 

Everything works fine. Only help needed here is. Out of 4 names that pop up in the drop down menu, Only the @AppicationName 'Informatica' needs to be used with Query1. Rest all 3 @ApplicationName need to use Query2
Help help me how to build the query in this condition. I tried IF Condition which is not working. 

Query1:

SELECT NetworkName,SampleTime,[Max]FROM vinny..PerfData_CPUServerView (nolock)Where NetworkName in(@ServerName)And SampleTime >= @StartDateTime and SampleTime <=CONVERT(date,DATEADD(dd,1, @EndDateTime),101)Orderby SampleTime asc


Query2:

select NetworkName,SnapshotTime, ProcessUsePct from vinny..SqlResourceUseHistoricView (NOLOCK)Where NetworkName in(@ServerName)And Snapshottime >= @StartDateTime and SnapshotTime <=CONVERT(date,DATEADD(dd,1, @EndDateTime),101)Orderby SnapshotTime asc



Viewing all articles
Browse latest Browse all 10045

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>