Dear community,
I just switched from Excel to Alteryx and would like to solve the following problem:
-I have a bill of materials of a car (i.e., a list of all components used in a car and the car part they belong to)
-I want to calculate the full quantity of each line, which requires a successive calculation, as the quantity depends on the parent part
Example:
-In the picture and excel attached, one car consists of one powertrain, one body, one electrical supply system and one interior
-The Body consists of 1 hood, 4 doors and 1x Windows
-Each door consists of one handle, one lock and one seal
-Hence, the quantity shown in the BOM is 4 for "Doors" , but only one for "Handle", "Lock" and "Seal"
-So, to calculate the number of, e.g., Handles used, I need to multiply the Handle quantity (1) with the full quantity of the parent part (Doors, 4).and the quantity of the Body (1)
In Excel, this is easy to implement using two separate columns:
-Column "Full quantity": = IF (No parent part available) THEN [quantity shown in BOM] ELSE [Full parent quantity] * [quantity shown in BOM]
-Column "Full parent quantity"=LOOKUP([Full quantity] of parent part)
Note that the two formulas are cross-referencing. This does not pose a problem in excel as rows are calculated successively. Do you have an idea how I can implement this in Alteryx?
The example shown here is simplified. The real data consists of >100,000 lines, hence solutions should ideally be computationally stable.
Any suggestions are welcome :-)