on 07-09-2016 12:10 PM
Hi All,
In the below example I'd like to join two tables on EmployeeId in a way that in the final result dataset I get EmployeeId where type equals A or is null. I'd be easy to do through command but I need to do it through table choice not command. When I left outer join the tables and filter records on condition type=A or IsNull(type) records with type value null are eliminated. Could you please advise how to do it?
Table 1
EmployeeId |
---|
1 |
2 |
3 |
Table 2
EmployeeId | Type |
---|---|
1 | A |
2 | B |
3 |
Result dataset:
EmplyeeId | Type |
---|---|
1 | A |
3 |
Regards,
Przemek
Hi Przemek,
After you setup the Join in CR, go to the Report Menu > Selection Formulas > Record and use this code:
(IsNull({table.Type}) OR {table.Type} = '' OR {table.Type} = 'A')
-Abhilash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.