Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Exclude content of field that starts with a specific letter

Hello,

I'm trying to exclude from my load all data of a field that start with the letter 'E' (field name is Account, see below).

I used wildmatch but it doesn't work. Here is part of my script.

Load

PM                                                                as [AP Payment Type],

Type                                                              as [AP Type],

[Clrng doc.]                                                    as [AP Clearing Doc],   

DocumentNo                                                  as [AP Document Number],

Account                                                         as [AP Account],

[G/L]                                                             as [AP Payment GL Acct],

Reason                                                          as [AP Late Payment Reason]                      

  FROM

  [$(RootDir_Data_Country_AP)$(l_Date)_monthlysummary.xlsx]

  (ooxml, embedded labels)

  Where Account <> WildMatch(Account,'E*')

  ;

Any idea ?

Thank you

1 Solution

Accepted Solutions
swuehl
MVP
MVP

  Where not  WildMatch(Account,'E*')

View solution in original post

5 Replies
swuehl
MVP
MVP

  Where not  WildMatch(Account,'E*')

maxgro
MVP
MVP

where not Account like 'E*';

where not upper(left(Account,1)) = 'E';

jagan
Luminary Alumni
Luminary Alumni

HI,

Try this

Where NOT  Upper(Account) WildMatch(Account,'E*');


OR


WHERE NOT  Upper(Account)  LIKE 'E*';


Hope this helps you.


Regards,

jagan.

jagan
Luminary Alumni
Luminary Alumni

OR

WHERE Upper(Left(Account, 1)) <> 'E';


Hope this helps you.


Regards,

jagan.

Not applicable
Author

Thank you very much guys.

All your solutions work.