Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Using lookup in SSRS or array formula Expand / Collapse
Author
Message
Posted Thursday, April 18, 2013 2:07 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Today @ 6:47 AM
Points: 39, Visits: 182
Hi community

I am hoping you can assist me with this one.

I have two datasets in my report which I want to 'combine'.
One dataset has a set of managers with their staff and the other has manager, staff, booked time.

Here is an example:
Dataset1:
Manager Staff
Mngr1 staff1
Mngr1 staff2
Mngr1 staff3

Dataset2:
Manager Staff BookedTime
Mngr1 Staff1 20
Mngr1 Staff2 10

Required view:
Manager Staff BookedTime
Mngr1 Staff1 20
Mngr1 Staff2 10
Mngr1 Staff3 0

So basically I want to lookup the manager in Dataset2 from Dataset1 and return ALL the manager's employees.
If the employee has not booked time I will then have 0 under the time.

Is this possible in SSRS?
I tried using the Lookup function but I am not getting it right (by the way I am using MS SQL 2008 R2).

Thank you


Post #1443652
Posted Friday, April 19, 2013 7:16 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Today @ 6:47 AM
Points: 39, Visits: 182
I solved this issue.
Post #1444377
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse