Select All in Multivalue Parameters does not return any values

Utilizing SQL Visual Studio 2005 Create Matrix:


STEP 1:
SQL Query for Dataset1
Select SALESREP, CUSTOMER, SUM(AMOUNT) AS AMOUNT
FROM SALESDATA
WHERE SALESREP=@SALESREP
GROUP BY SALESREP, STATE, CUSTOMER

Step 2
Setup Dataset SALESREP
SELECT DISTINCT SALESREP
FROM CUSTOMER

Step3
Setup Report Parameter
Name SALESREP
Data Type Text
Prompt Sales Rep
Select Multi-Value
From Query:
Data Set SALESREP
Value Field SALESREP
Label Field SALESREP
Default None

Step 4
Attach Filter to Report
From Layout, right-click, select Properties
Filter tab
Expression: =Field!SALESREP.Value
Operator: In
Expression: =JOIN(Parameters!SALESREP.Value,",")

Step 5
Attach Filter to Dataset1
From Data, Dataset Properties
Filter tab
Expression: =Field!SALESREP.Value
Operator: In
Expression: =JOIN(Parameters!SALESREP.Value,",")

Preview Report
Select All from SALESREP Drop Down, Preview Report
No information returned.
Select one value in Drop Down, Preview Report
Report reflects information for selected SALESREP.

I am not a programmer, so would like to avoid writing any custom functions.  If a custom function is the only please lead me to basic instructions for writing custom functions.
Thank You
tberardiAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

PFrogCommented:
In your filters, you need to remove the join clause. SSRS deals with multi valued parameters internally, so you can just use
    =Parameters!SALESREP.Value
as your filter
0
tberardiAuthor Commented:
I originally used the =Parameters!SALESREP.Value as filter, but received same results, when Select All, no information returned.  Since I'm new to SSRS, I've been trying many options to resolve.  If a custom function is the solution, I'd appreciate a SSRS step-by-step resource to resolve.
Thanks for responding in my desparation!
0
PFrogCommented:
You definately don't need a custom function for this.

Leaving the filter as
    =Parameters!SALESREP.Value
what happens when you just select two values?
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

PFrogCommented:
Hold on, just noticed....

change this
  SQL Query for Dataset1
  Select SALESREP, CUSTOMER, SUM(AMOUNT) AS AMOUNT
  FROM SALESDATA
  WHERE SALESREP=@SALESREP
  GROUP BY SALESREP, STATE, CUSTOMER

To
  WHERE SALESREP IN (@SALESREP)
0
PFrogCommented:
In which case, you don't need to specify any filters for the dataset, as you are doing it within the query.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
tberardiAuthor Commented:
To complete the steps, I had to add the following to the query to accomodate for null values:

Select SALESREP, CUSTOMER, SUM(AMOUNT) AS AMOUNT
  FROM SALESDATA
  WHERE (SALESREP IN (@SALESREP) OR 'NONE' IN (@SALESREP))
  GROUP BY SALESREP, STATE, CUSTOMER

0
daveswbCommented:
Question that would work on a dataset with the query in the report. What if you want to do it against a stored proc? I have data comming back from a proc I want to filter after the fact. Is that possile?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
DB Reporting Tools

From novice to tech pro — start learning today.