Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
santharubban
Creator III
Creator III

Datamodel Help

Hi

I am using 2 tables one is Master Material and other is Batchmaterial.

Master Material:

MaterialMaterial TextComp MRP Controller
10020001ABCB02
10020002EFGB03
10020003hijB02
10020004klmB04
10020005xxxB05
10020006yyyB08

Batchmaterial

MaterialMaterial TextBOM Component
10020001ABC10020004
10020001ABC10020002
10020003hij10020005
10020002EFG10020001

From these table i need to display here CompMPRController should be take of  BOMComponent.

MaterialMaterial TextBOM ComponentComp MRP Controller
10020001ABC10020004B04
10020001EFG10020002B03
10020003hij10020005B05
10020002klm10020001B03

Please advice.

1 Solution

Accepted Solutions
albertovarela
Partner - Specialist
Partner - Specialist

An apply map might be helpful; try this

Map_MasterMaterial:

Mapping LOAD

     Material,

//   [Material Text],

     [Comp MRP Controller]

FROM

  [http://community.qlik.com/thread/139128] (html, codepage is 1252, embedded labels, table is @1);


BatchMaterial:

LOAD

  Material,

     [Material Text],

     [BOM Component],

     ApplyMap('Map_MasterMaterial',[BOM Component],'N/A') as [Comp MRP Controller]

FROM

  [http://community.qlik.com/thread/139128] (html, codepage is 1252, embedded labels, table is @2);

View solution in original post

5 Replies
its_anandrjs

Your output not understood can you explain more about that.

Regards,

Anand

santharubban
Creator III
Creator III
Author

Thanks for reply..

for each material there will be different BOMcom , i want to display CompMRPcontroller correspounding to the BOMCom not to material. I want to pick the ComMRPController from thr Mastermaterial that should be based on the BOMcom in Batchmaterial table.

Anonymous
Not applicable

Please look at your 2 tables and desired output.

Your output is not possible given the two source tables. I have attached an example that I believe accomplishes your desired result (assuming that you fix your references).

albertovarela
Partner - Specialist
Partner - Specialist

An apply map might be helpful; try this

Map_MasterMaterial:

Mapping LOAD

     Material,

//   [Material Text],

     [Comp MRP Controller]

FROM

  [http://community.qlik.com/thread/139128] (html, codepage is 1252, embedded labels, table is @1);


BatchMaterial:

LOAD

  Material,

     [Material Text],

     [BOM Component],

     ApplyMap('Map_MasterMaterial',[BOM Component],'N/A') as [Comp MRP Controller]

FROM

  [http://community.qlik.com/thread/139128] (html, codepage is 1252, embedded labels, table is @2);

its_anandrjs

Hi,

Try to load this way

[Master Material]:

LOAD * Inline

[ Material, Material Text, Comp MRP Controller

10020001, ABC, B02

10020002, EFG, B03

10020003, hij, B02

10020004, klm, B04

10020005, xxx, B05

10020006, yyy, B08 ];

[Batch Material]:

LOAD Material as [Batch Material],[Batch Material Text],[BOM Component] as Material;

LOAD * Inline

[ Material, Batch Material Text, BOM Component

10020001, ABC, 10020004

10020001, ABC, 10020002

10020003, hij, 10020005

10020002, EFG, 10020001 ];

Regards,

Anand