Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Straight Table showing possible values and excluded values

Hi,

I have an order record which I would like to use it to create a table to know the relationship between orders. Let's say, in PO 1, customer ordered item A, together with item B and item C, PO 2, customer order item B, item C, PO3, customer order, item A and item C. I would like to know which items are order together. Thus, I would like to create a straight table which format like

Item S # / Item order together with item S which is top 1 / Qty / Item order together with item S which is top 2 / Qty

A                    B                                                             XX                      C                                               XXX

Is it possible to do so? Appreciate for your help!

2 Replies
senpradip007
Specialist III
Specialist III

Can you share a sample qvw with sample data and expected output ?

Not applicable
Author

The source data like this:

 

PO#Item#Qty
1A200
1B300
2A200
2C300
3A100
3B200
3C300

I would like to have the output like this:

     

ItemTop 1 item wihich order together # of order attached togetherQtyTop 2 item wihich order together # of order attached togetherQty
AC2600B1300
BA2300C1300
CA2300B1200