PDA

View Full Version : True Many to Many - Product manufacturers and categories



KCantor
2016-05-23, 10:01 PM
I have two fact tables: Campaigns and Sales. Normally I use one item table as a look up for the sales facts that is based upon item number which associates manufacturer and product category. The campaign fact table has both of those listings but not an item number which means it is a many to many connection which doesn't work too well. In order to calculate totals, I broke the item table into two pieces: Manufacturer and Product. Some campaigns have a manufacturer but not a product and some have a product and not a manufacturer. I would like to use this data to apply a weighted amount to manufacturers for product campaigns that do not have a manufacturer. I have given these unassigned campaigns generic names in order to build a foundation. What I don't know how to do is to bring the two look ups together. I would like to divide the product spend by the number of manufacturers for that product and assign it to the manufacturer to add to manufacturer specific totals.
Data in dropbox
https://www.dropbox.com/s/x9cul41v8ck9h6b/test%20data%202.0.xlsx?dl=0

Pecoflyer
2016-05-24, 08:38 AM
Duplicate thread. Thread closed

http://www.excelguru.ca/forums/showthread.php?6091-Many-to-Many-nightmare