Hi all
This is for a download of employee information that has already been set up i am just trying to create an additional column (IsManger) that will tell me from the data if a user manages another member of staff.
I am trying to get the following results in a report for IsManager field
Table Employees
UserId, ManagerId, IsManager
1 Yes
2 1 Yes
3 2 No
The Sql Equivelent would be:
SELECT
UserId,
ManagerId,
CASE
WHEN UserId IN (SELECT ManagerId FROM data) THEN ‘Yes’
ELSE ‘No’
END AS IsManager
FROM data;
I have tried using InList and generate dynamically from a query1 into a variable that could be used in the report to get something like
=If(UserId InList(“1”;“2”) Then “Yes” Else “No”) but could not get vany values into the main report.
I have not done any BO before but used SSRS, not understanding how you use sub queries to work with the main report data.
Any suggestions welcome