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

Selecting one of the doubled values

Hello All,

Is there any expression in Data Load Editor  where I can select one of doubled values?  

   

UserORDER IDDATEQTY
AUTO10345921-8-20182
XYZ10345921-8-20182
AUTO10344821-8-20182
AUTO10346321-8-20181
XYZ10378921-8-20185
AUTO10123521-8-20183
XYZ10853121-8-20181
AUTO10694121-8-20184
XYZ10264821-8-20188


In this case I need only amount of unites done by USER: XYZ.

So In case where two users appears for the same order I need last occurred transaction.

Greetings

P.Rybacki

1 Solution

Accepted Solutions
Gysbert_Wassenaar

MyData:

LOAD * FROM ...somewhere... WHERE User <> 'AUTO';


CONCATENATE (MyDate)


LOAD * FROM ...somewhere... WHERE Not Exists([Order ID]);



talk is cheap, supply exceeds demand

View solution in original post

6 Replies
Gysbert_Wassenaar

Afaict they're all the last occurred transaction since they all have the same DATE value. So how should QS know which is the last one?


talk is cheap, supply exceeds demand
przemyslaw_r
Contributor II
Contributor II
Author

Hi Gysbert,

I haven't specify my question.

Doesn't matter when occurred. what I need is, every time  when for the same order two users appears I need not AUTO.

Gysbert_Wassenaar

When you load the data you can add a WHERE clause to the load statement to skip all the records where the user is AUTO:

LOAD * FROM ...somewhere... WHERE User <> 'AUTO';


talk is cheap, supply exceeds demand
przemyslaw_r
Contributor II
Contributor II
Author

Hi,

Please look the table which I pasted. The orders are done or AUTO or XYZ, so I also need AUTO.

This exception is when AUTO (machine) packed order but it was wrong, so USER: XYZ came and fixed package. Than I need only XYZ. For rest of the order AUTO is needed as soon as Will be not fixed by human (XYZ)

Gysbert_Wassenaar

MyData:

LOAD * FROM ...somewhere... WHERE User <> 'AUTO';


CONCATENATE (MyDate)


LOAD * FROM ...somewhere... WHERE Not Exists([Order ID]);



talk is cheap, supply exceeds demand
przemyslaw_r
Contributor II
Contributor II
Author

Thanks!