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

Using a Parameter to fully Filter a Column in SSRS

$
0
0

Hi,  I know there has been some discussions on this but I am unable to find a solution for my problem. I have a SSRS table that looks like this:

Ticker	Company	        AcqDate
AAA	CompanyAAA	2016-07-01
	CompanyAAA	2016-08-01
	CompanyAAA	2016-09-06
	CompanyAAA	2016-09-07
BBB	CompanyBBB	2016-07-04
	CompanyBBB	2016-07-09
	CompanyBBB	2016-08-08
CCC	CompanyCCC	2016-08-09
	CompanyCCC	2016-09-06
	CompanyCCC	2016-09-07

The above is a sample and in the actual report there are about 50 Tickers. The end user would like me to add a Filter to the report so they can see the information for just one, two or however many Tickers they want. I did the following steps:

  1. Created a new dataset ("DataSet2") from the same datasource using the query SELECT DISTINCT Ticker
  2. Created a new Parameter called "Tickers". Under the Parameter Property's General properties, I checked "Allow multiple values".
  3. For the Parameter's Available values, I chose"Get values from a query" and then picked "DataSet2" for dataset, "Ticker" for value field and "Ticker" again for Label field.

When I run this report, the parameter shows up as a drop-down filter on the Preview pane and gives me the option to choose however many Tickers I like from a dropdown list.

The issue is no matter how many Tickers I choose, I keep seeing the report for all the Tickers instead of the one/ones I picked in the dropdown.

What am I doing wrong/ not doing?




Viewing all articles
Browse latest Browse all 10045

Trending Articles



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