cancel
Showing results for 
Search instead for 
Did you mean: 

Left outer join and records filtering

Former Member
0 Kudos

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

EmployeeIdType
1A
2B
3

Result dataset:

EmplyeeIdType
1A
3

Regards,

Przemek

Accepted Solutions (0)

Answers (1)

Answers (1)

abhilash_kumar
Active Contributor
0 Kudos

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