Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
gino2780
Creator
Creator

How to identify additional charakters?

Hello,

in my excel-data i have a field (Straße) that contains charakters like: ,  /  +  (  )  =  ^ which are illegit charakters for the specific field (Straße).

The spreadsheet looks like this:

Straße.JPG

Yellow entries are those which i want to identify with my app. So i need a script command that searches in the field (Straße) for those additional characters (row-wise) with an OR-combination: find field entries that have '/' or ',' or '=' etc. ...

How would the complete LOAD script look like?

With kind regards,

Giacinto Abbruzzese

4 Replies
lironbaram
Partner - Master III
Partner - Master III

you can use in the script

if(wildmatch(Straße,'*/*','*-*')>0,1,0) As IllegalFlag

gino2780
Creator
Creator
Author

How would the whole script command look like?

For example, this variant is not working:

LOAD

if(wildmatch(Straße,'*/*','*-*')>0,1,0) as IllegalFlag,

FROM [lib://DQM/20150925_Auszug DQM-Sicht.xls]
(biff, embedded labels, table is [owssvr (9)$]);

swuehl
MVP
MVP

You can also use some other string functions:

If( Len(KeepChar( [Straße], ',/+()=^'), 1,0 ) as IllegalFlag

If (FindOneOf( [Straße], ',/+()=^'), 1,0 ) as IllegalFlag

swuehl
MVP
MVP

Giacinto Abbruzzese wrote:

How would the whole script command look like?

For example, this variant is not working:

LOAD

if(wildmatch(Straße,'*/*','*-*')>0,1,0) as IllegalFlag,

FROM [lib://DQM/20150925_Auszug DQM-Sicht.xls]
(biff, embedded labels, table is [owssvr (9)$]);

Remove the comma after the last field name in your LOAD statement, IllegalFlag.