![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Fast food chain store (Think the likes of Burger King or McDonald's). Items are sold separately or combined. Need to know, for each item sold, what are the ratios that any other items are sold in the same transaction. For example, one day during 5-6PM, 200 Cokes were sold in 160 transactions (orders). 75 of them were part of the combo's. Within those 160 transactions, there also sold 140 cheese burgers, 130 French fries (85 of them were part of the combo's), . That is, in that time period, 200 Cokes were sold in transaction that also sold 85 French fries in combo, 45 French fries not in combo; 140 cheese burgers, etc. The data warehouse is to provide information like: at 8-9AM, 234 Fries were sold in transaction that also sold 48 Cokes and 93 Coffee; at 7-8PM 435 Fries were sold in transactions that also have 238 Cokes and 49 Diet Coke, and so on. Business calendar, store structure, and order size (how much per order) are other dimensions. There are hundreds of items in tens of categories. So, what the best way to design this? No answer from my previous post, so I am going to have a three hundred dimention data warehouse? Thanks a lot! DNG |
#3
| |||
| |||
|
|
Fast food chain store (Think the likes of Burger King or McDonald's). Items are sold separately or combined. Need to know, for each item sold, what are the ratios that any other items are sold in the same transaction. For example, one day during 5-6PM, 200 Cokes were sold in 160 transactions (orders). 75 of them were part of the combo's. Within those 160 transactions, there also sold 140 cheese burgers, 130 French fries (85 of them were part of the combo's), . That is, in that time period, 200 Cokes were sold in transaction that also sold 85 French fries in combo, 45 French fries not in combo; 140 cheese burgers, etc. The data warehouse is to provide information like: at 8-9AM, 234 Fries were sold in transaction that also sold 48 Cokes and 93 Coffee; at 7-8PM 435 Fries were sold in transactions that also have 238 Cokes and 49 Diet Coke, and so on. Business calendar, store structure, and order size (how much per order) are other dimensions. There are hundreds of items in tens of categories. So, what the best way to design this? No answer from my previous post, so I am going to have a three hundred dimention data warehouse? Thanks a lot! DNG |
#4
| |||
| |||
|
|
Sorry, I left one aspect out of my last post. It sounds like each line item (transaction id/product id) in your fact table/view should have a combo qualifier (like a 'Y' if it is or an 'N' if it's not) so you can do your analysis of whether or not it was included in a combo. If that's included in your product dimension, then you wouldn't have to worry. For example, if you had a "hamburger" and "hamburger/part of combo" as two different product members. Another way to do it would be to have a combo dimension that indicates which combo the product is part of, if any. If the product on that line doesn't belong to a combo, it can have the "not part of combo" member assigned to it from that combo dimension. Good luck! - Phil "DNG" wrote: Fast food chain store (Think the likes of Burger King or McDonald's). Items are sold separately or combined. Need to know, for each item sold, what are the ratios that any other items are sold in the same transaction. For example, one day during 5-6PM, 200 Cokes were sold in 160 transactions (orders). 75 of them were part of the combo's. Within those 160 transactions, there also sold 140 cheese burgers, 130 French fries (85 of them were part of the combo's), . That is, in that time period, 200 Cokes were sold in transaction that also sold 85 French fries in combo, 45 French fries not in combo; 140 cheese burgers, etc. The data warehouse is to provide information like: at 8-9AM, 234 Fries were sold in transaction that also sold 48 Cokes and 93 Coffee; at 7-8PM 435 Fries were sold in transactions that also have 238 Cokes and 49 Diet Coke, and so on. Business calendar, store structure, and order size (how much per order) are other dimensions. There are hundreds of items in tens of categories. So, what the best way to design this? No answer from my previous post, so I am going to have a three hundred dimention data warehouse? Thanks a lot! DNG |
![]() |
| Thread Tools | |
| Display Modes | |
| |