Skip to main content

Hello,

 

I am trying to create BOM report on Tableau. I have material and components. However, sometimes one of the components of material is also material and has its own components. I am trying to list all of them at the one view. Desired output is:

 

String and Substring (BOM)

 

I tried this but returned null.

 

IF CONTAINS([Material],[Component]) then

{ FIXED [Material]:MIN(IF [Material]=[Component] then

[Component] end)}

else [Component]

END

Please keep in mind that I use 5 different datasources to build this view and I will have to list tens of materials like this. I used one as an example.

 

Thank you

4 answers
  1. Feb 21, 2019, 11:45 AM

    Hi, Kemal

     

    Please find my solution attached.

     

    Below is step by step

     

    1st, join your data to itselft as shown below by key componet=material

    Hi, Kemal Please find my solution attached.

     

    2nd, create a filter to filter the matched material(or material with sub items)

    pastedImage_1.png

     

    Hope this helps

     

    ZZ

0/9000