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

Many to Many relationship Mapping???

Hi,

I am currently facing an issue with mapping a table with applymap. Unfortunately, my mapping has many to many relation ship and I can not figure out a way to do this.

Example data:

UsepointMHASystem MHA
2EM012EM00
2EM022EM00
2EM032EM00
2EM042EM00
2EP012EP01
2EP022EP02
2EP032EP03
2EM022QMTR
2EP022QRAD

 

I have multiple values for 2EP02 if I map UsePointMHA to SystemMHA and Similarly if i want to SystemMHA to UsePointMHA, 2EM00 have multiple values. This is only sample data, i have lot of cases similar to this.

Is there anyway for me to map this table so that when i try to map usepointmHA , i get all the values of SystemMHA and vice versa.

I am currently using Apply Map function for mapping or vlookup. 

Thanks,

Vidya
Vidya

Labels (1)
5 Replies
dplr-rn
Partner - Master III
Partner - Master III

I don't think you Can do this using applymap.
Why not just load this table into your app?
Need more details to help properly
Thiago_Justen_

Firstly, here is a question: When 2EP02 assumes 2EP02 and when does it assume 2QRAD?

Thiago Justen Teixeira Gonçalves
Farol BI
WhatsApp: 24 98152-1675
Skype: justen.thiago
jonathandienst
Partner - Champion III
Partner - Champion III

Mapping is not the solution in this case. Depending on your data model, you could let Qlik handle the associations, or you could create a link table.
Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
poluvidyasagar
Creator II
Creator II
Author

Hi,

I am adding more data to make it more clear:

Here are my tables:

Table1: ProductionSytemData

PartLocationUsePointMHA
A2EM01AA2EM01
A2EP02EE2EM02
B2EM01AA2EM01
C2EM01AA2EM01
D2EM02AA2EM01
D2EM02AB2EM01
E2EM03AA2EM01
F2EM04AA2EM01
G2EP01BB2EP01
H2EP02BB2EP02
I2EP02CC2EP02
J2EP03DD2EP03
J2EP03DD2EP03
L2EP02EE2EP02
H2EP02BB2EP02

 

Table2: Logistics SystemData

PartSystemLocationSystemMHA
A2E123452EM00
B2E123462EM00
C2E123472EM00
D2E123482EM00
D2E123602EM00
E2E123492EM00
F2E123502EM00
G2E123512EP01
H2E123522EP02
I2E123532EP02
J2E123542EP03
J2E123552EP03
L2E123562QRAD
A2E123572QMTR
H2E123582QRAD

 

Table 3: Mapping Table

UsepointMHASystem MHA
2EM012EM00
2EM022EM00
2EM032EM00
2EM042EM00
2EP012EP01
2EP022EP02
2EP032EP03
2EM022QMTR
2EP022QRAD

 

Results table: This is what i need. Because I have many to many relationship i am not able to achieve this.

PartSystemMHA#UsePoints#SystemUsePoints
A2EM0011
A2QMTR11
B2EM0011
C2EM0011
D2EM0022
E2EM0011
F2EM0011
G2EP0111
H2EP0211
I2EP0211
J2EP0322
L2QRAD11

 

I have attached the Qlikview file.

Thanks,

Vidya

poluvidyasagar
Creator II
Creator II
Author

I tried to do that. It created circular loops in the data model.