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

Passing Value from MultiValue parameter

$
0
0

Hi All ,

I have a simple query suppose

select org_id ,org_name from organization

where org_parent = 'TrueBlue' ;

now i get this result from above query :-

org_id                 org_name

1                          Zacks

2                          Racks

3                         Tracks

4                          Maxs

Based on the above query data in org_name i made a multi -parameter Value  Drop Drown named organization

So my multi - parameter Drop Down looks something like this :

Organization :    Zacks

                           Racks

                          Tracks

                         Maxs

Suppose a user select Zacks,Racks,Maxs from the Multi - Parameter Drop Down then this values going to be passed in a simple query like this

select Firstname,lastName from employees where organzation in @organization

which results something like this select Firstname,lastName from employees where organzation in (Zacks,Racks,Maxs)

Now i want that instead of passing Zacks,Racks,Maxsit's org_id should be passed .

so if a user select zacks from the multi-parameter drop down then org_id 1 is passed in the main query .

This is just fictitious Data based on the actual requirement . 

Kindly Help

Priya


Viewing all articles
Browse latest Browse all 10045

Trending Articles