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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
thom_sundberg
Contributor II
Contributor II

Trying to remove data in load

Hi,

I have a problem with the bold lines:

FROM
[D:\QlikView Storage\Private Data\Source Documents\In Production\Ekonomi\Data\02_Transform\UBW\Verifikationer.qvd] (qvd)
where left(%Key_Konto,2) = 'NK'
and mid(%Key_Konto, 4,1)>=4 and mid(%Key_Konto, 4,1)<8
and len(Utfall_Belopp)>0
and right(%Key_Konto,5)<>48500
and right(%Key_Konto,5)<>46301 //Tillagt av Thom 190411 (ta bort kundval)
and right(%Key_Konto,5)<>46321 //Tillagt av Thom 190411 (ta bort kundval)
and left(SubField(%Key_Motpart,'|',2),1)>=8 //motpart 8-9*
and left(Verifikationsnr,2)<> 29 //verkar vara periodiseringar, tar bort dem
and year(%Key_Datum)>=$(StartYearUBW)
and len(subfield(%Key_Leverantör,'|',2))>0;

The first one work <>48500 but not for <>46301 and <>46321. What am I doing wrong?

1 Solution

Accepted Solutions
Channa
Specialist III
Specialist III

use NotMatch( right(%Key_Konto,5)=48500,46301 ,46321 )

Channa

View solution in original post

2 Replies
Channa
Specialist III
Specialist III

use NotMatch( right(%Key_Konto,5)=48500,46301 ,46321 )

Channa
thom_sundberg
Contributor II
Contributor II
Author

Thanks for the answer.

Needed some '' around the numbers.

use NotMatch( right(%Key_Konto,5)='48500','46301' ,'46321' )