Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Betty1
Contributor
Contributor

If Match and Not WildMatch

I have the following in my load data script.  The first part works fine, but the results include line numbers beginning with 77 or 88.  Would appreciate any help on where this is incorrect.  Thanks.

 

If(Match([Appointment Type (Position)],'FTT', 'PTT','INT') and
(Not Wildmatch([Local Line Number], '77*','88*')), 1, Null()) AS [CIV-TEMP/TERM],

1 Solution

Accepted Solutions
chrismarlow
Specialist II
Specialist II

Hi,

If your Local Line Number is numeric, try wrapping in a Text function;

If(Match([Appointment Type (Position)],'FTT', 'PTT','INT') and
(Not Wildmatch(Text([Local Line Number]), '77*','88*')), 1, Null()) AS [CIV-TEMP/TERM],

Cheers,

Chris.

View solution in original post

2 Replies
chrismarlow
Specialist II
Specialist II

Hi,

If your Local Line Number is numeric, try wrapping in a Text function;

If(Match([Appointment Type (Position)],'FTT', 'PTT','INT') and
(Not Wildmatch(Text([Local Line Number]), '77*','88*')), 1, Null()) AS [CIV-TEMP/TERM],

Cheers,

Chris.

Betty1
Contributor
Contributor
Author

Thanks Chris.  That seems to have worked perfectly.