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: 
hopkinsc
Partner - Specialist III
Partner - Specialist III

Script Help

.

Hi, i am trying to do something in my script but i'm not sure how to do it..

I am loading in a table with the following fields..

PosTransactionDetail:

LOAD

     StoreNumber,

     TransId,

     EANCode AS EAN,

     VATIndicator,

     VATAmountDue,

     VATBase,

     LineType,

     SaleStartDate

FROM xyz

But i don't want to load in any POSITIVE VATbase values with the LineType of V (But still want to include the NEGATIVE LineTypes of V)

Can anyone help me to achieve this please?

Labels (1)
1 Solution

Accepted Solutions
john_duffy
Partner - Creator III
Partner - Creator III

Hello.

Try adding a Where clause such as 'not(LineType = 'V' and VATBase > 0)'.

John.

View solution in original post

3 Replies
john_duffy
Partner - Creator III
Partner - Creator III

Hello.

Try adding a Where clause such as 'not(LineType = 'V' and VATBase > 0)'.

John.

hopkinsc
Partner - Specialist III
Partner - Specialist III
Author

Hi John,

This is what i did..

PosTransactionDetail:

LOAD

     StoreNumber,

     TransId,

     EANCode AS EAN,

     VATIndicator,

     VATAmountDue,

     VATBase,

     LineType,

     SaleStartDate

   

FROM $(cFileName) (qvd) Where not(LineType = 'V' and VATBase > 0);

But this excluded ALL lineTypes of V except ZERO....

untitled.JPG

Any ideas?

hopkinsc
Partner - Specialist III
Partner - Specialist III
Author

John, sorry, ignorfe me, i had a selection wrong. That did what i wanted, but have found another problem. Just trying to find out what the problem is,...