Users may want to create a report similar to the table below which is outlined in the section relating to market basket analysis in the Advanced Reporting Guide:

The following example shows the way to create a market basket analysis report with the detailed steps:
ITEM_ID | ITEM_DESC |
1 | Soda |
2 | Potatoes |
3 | Onions |
4 | Beef |
5 | Rice |
ORDER_ID | ITEM_ID | SALES_AMT |
1 | 1 | 1 |
1 | 2 | 1 |
2 | 1 | 1 |
2 | 2 | 1 |
3 | 2 | 1 |
3 | 3 | 1 |
3 | 4 | 1 |
4 | 1 | 1 |
4 | 5 | 1 |
5 | 2 | 1 |
5 | 4 | 1 |
6 | 1 | 1 |
6 | 2 | 1 |
6 | 3 | 1 |
7 | 1 | 1 |
7 | 2 | 1 |
8 | 1 | 1 |
8 | 2 | 1 |
8 | 3 | 1 |
9 | 3 | 1 |
9 | 4 | 1 |
9 | 5 | 1 |
10 | 3 | 1 |
10 | 4 | 1 |
10 | 5 | 1 |
Max<FactID=[Sales Amt]>(Item@DESC) {~+, Item+}






KB226973