Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
jozisvk11
Creator
Creator

Counting the correct quantities in a multi-level bill of materials

Hello,

I have a data from SQL database, which is used by our ERP. Structure of table is multi-level BOM. What does it mean ?

Here is some example of data (Important information is - Quantities are stored per one unit; I need to scale them for multiple units.

Manufactured ItemPositionItemQuantity
A10250001V35355110M7000014
A10250001V35355120M7000066
A10250002V35355210A10250002V3535532
A10250002V35355220M70000910
A10250002V35355310A10250002V3535541
A10250002V35355320M7000052
A10250002V35355410M7000021
A10250003V35355510A10250003V3535562
A10250003V35355520M7000041
A10250003V35355610M7000062
.... etc.   

 

So, the item A10250001V353551 is always parent, so the item is single-level.

But, the item A10250002V353552 is multi-level, because first lower part of BOM is A10250002V353553 and also the item A10250002V353553 has other lower part of BOM - A10250002V353554. And If I want to manufactured 3 pieces of A10250002V353552, than I need 6 pieces of A10250002V353553, and 30 pieces of M700009 ... etc.

The data needs to be scripted correctly in order for Qlik Sense to properly summarize the quantities.

Could you advise me on how to script this so that it calculates correctly? Thank you very much.

Labels (1)
1 Reply
marcus_sommer

I think the following could be helpful: Bill of Materials - Qlik Community - 1462792