Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 SQL and SSRS Variable selection - hide some result

Author  Topic 

2revup
Posting Yak Master

112 Posts

Posted - 2013-11-04 : 16:55:34
I have a very simply SQL query

Select distinct title from agents
where
title like '%Engineer%'


this renders a few results back, what I am looking to do is some how only SHOW the top 1 result to the users of there SRSS report as this will be a variable selection, but when selecting this single record it will include all of other results in the search.

so essentially all results will be hidden from the end user, but what they are actually doing is selecting all of the results returned from the above query.

lets say I run the above query the results might render:
Support engineer
Engineer Support
Associate Support Engineer

There are 3 results shown there, I ONLY WANT to show the user the first result, but once they select this in the Report, it should automatically select the other results, this should be a transparent process

Is this possible?
   

- Advertisement -