Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

delete rows with special character

Hi i Need your help

in my load script i want to delete the rows which have the characters Kostenstelle 1011747 Kostenart 2581500000 and [Konto Gegenbuchung] 10010

the way like i did it doesnt work really

here is my script

SAP_IST_F20:
LOAD Geschäftsjahr,
Periode,
AddMonths(makedate(Geschäftsjahr,2), Periode) as Date1,
// Month(Periode,+2) AS Month,
// Year(Date) AS Year,

Kostenstelle,
Kostenartengruppe,
Kostenart,
Kostenartenbeschr.,
[Konto Gegenbuchung],
[Bezeichnung des Gegenkontos],
[Wert/BWähr],
Berichtswährung,
Benutzername,
Buchungsdatum,
Bezeichnung,
[Nr Referenzbeleg],
Einkaufsbeleg
FROM

(
qvd)
Where Kostenstelle <>1011747 and Kostenart <>2581500000 and [Konto Gegenbuchung]<> 10010;   ????

STORE SAP_IST_F20 into Q:\10_QVD\SAP_IST_F20ohne1011746_1011746.qvd(qvd);


Labels (1)
14 Replies
Not applicable
Author

Hi Andreas

try this

here num(Kostenstelle) <>'1011747' and num(Kostenart) <> '2581500000' and num([Konto Gegenbuchung]) <> '10010';

But this string tells the scrip not to load lines that match all 3 kriteria, If u what to string  not load lines that have one of the kriteria u should use OR instead or AND.

/Teis

Not applicable
Author

i have the Problem that for example

Kostenstelle 1011756 and Kostenart 2581500000 and Konto Gegenbuchung 10010

are existing and then they are deleted too

can u help?

Not applicable
Author

Hi Andreas,

you are using an 'and' condition for your three criteria, is that how the data is represented?

Should the row you want to delete meet all three of the requirements, or are you actually wanting to delete any rows which meet have any of those criteria?


Your code at the moment looks fine if the row should contain all three.

If not and each should be separate, then an 'or' condition should be used.

Where Not (Kostenstelle ='1011747' Or Kostenart ='2581500000' or [Konto Gegenbuchung]= '10010')

hope that helps

Joe

PrashantSangle

Hi,

Use Not match() or Not wildmatch() in where clause

try like

Where not Wildmatch(Kostenstelle,'*1011747*','*2581500000*') or not wildmatch([Konto Gegenbuchung],'*10010*')

use or/And as per requirement in abve expression

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Not applicable
Author

hi Joe

thanx

can u explain me what i have to do when i have to do if i want to have this criteria

1. Kostenstelle 1011746 Kostenart 2581500000 Konto Gegenbuchung 10010

and the second criteria

2. Kostenstelle 1011746 Kostenart 9953000010

in 1. and 2. the criteria should be contain all three in 1. and both in 2.

can u help me?


PrashantSangle

Hi,

did you apply my suggestion??

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Not applicable
Author

hi Andrea

try this at the end of your load script

Where Not (Kostenstelle ='1011747' and Kostenart ='2581500000' and [Konto Gegenbuchung]= '10010') or

                        (Kostenstelle ='1011746' and Kostenart ='995300010' )

 

/Teis

Not applicable
Author

Hi Teis,

for the second criteria it doesnt work

can u help again?

Not applicable
Author

Hi Andreas,

Where Not ((Kostenstelle ='1011747' and Kostenart ='2581500000' and [Konto Gegenbuchung]= '10010') or

                        (Kostenstelle ='1011746' and Kostenart ='995300010' ))

should do that for you

Joe