Quantcast
Viewing all articles
Browse latest Browse all 10045

Can someone help me with the correct SQL code to use in SSRS to get two columns to work together if a specific code is present then populate the name associated?

I have two columns for the fields staff_role and the other column contains last_name, first_name. What I want to do is pull three specific staff roles, if they are present, then also fill in the last name, first name fields associated with those roles in the other column. If there is nothing in those three codes then both columns should be blank or at least the name column should be blank. I have the expression in the staff_role field set to render labels for Lead Atty, BK Mgr, and Partner in Charge instead of just the 4 digit code which is great but I cannot figure out how to make the name column dependent on the staff role column. Not sure if this should be established with a parameter or a filter or just in the query. Any ideas??

Viewing all articles
Browse latest Browse all 10045

Trending Articles