Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
johnan
Creator III
Creator III

Calculate ODD

Hi, got 2 tables

Table 1: This conatains just ordernumber, articles and quantity on order
Table 2: This contains article data type, length, hight, wieght and casepack

 

I want in my script identify all rows from table 1 that not equal to the case pack, let me illustrate:

From table 1:
1.Ordernumber 455, article 12222, quantity 3
2.Ordernumber 455, article 12222, quantity 6
-----------------------------------------------------------------
Table 2 contains
Article 455, Casepack 6

-----------------------------------------------------------------

So now in my script  a will mark row 1 with 'ODD' and row 2 with 'EVEN'

Are you with me 🙂

 

1 Solution

Accepted Solutions
MayilVahanan

Hi @johnan 

T1:

Load * from Table1;

Join(T1)

Load Article, Cashpack from Table2;

Load *, if(Cashpack = Quantity, 'Even', 'Odd') resident T1;

Drop table T1;

Hope it helps.

 

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

1 Reply
MayilVahanan

Hi @johnan 

T1:

Load * from Table1;

Join(T1)

Load Article, Cashpack from Table2;

Load *, if(Cashpack = Quantity, 'Even', 'Odd') resident T1;

Drop table T1;

Hope it helps.

 

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.