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

How to over come Many to Many Relation ship?

Hi

Can any one please guide me on how to avoid many to many relation ship between the tables.

Scenario: I have two tables  table 1 and table 2   in table 1 contact no is having many contracts as well as Table 2 contract no also having many contact nos ,if i use these tables in qlikview i am getting  redundant data. how to handle this scenario.

5 Replies
Not applicable
Author

hi john,

use qualify *

and unqualify the key field!

Regards,

Barathiraja

amit_saini
Master III
Master III

John,

This kind of links will create lots of synthetic key , better to avoid them . check below:

Link

Thanks,

AS

jonathandienst
Partner - Champion III
Partner - Champion III

Hi

The contact table should contain one row per contact with a unique ID (eg ContactID), likewise with the contract table (ContractID). Then use a link table with the fields ContactID and ContractID for the many to many links.

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
sujeetsingh
Master III
Master III

John,

Dienst has given you the right option well you can use Applymap and joins too to implement the logic.

Not applicable
Author

Hi Jonathan dienst

If possible can you please explain me with an example.

Thanks

John