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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

avoiding a circular reference loop

Hi,

Im having a problem with a circular loop reference when i try and link 'Care Group' field in 3 tables.

I therefore have to rename 'Care Group' to 'Specialty Care Group' in the Specialty_Mapping table to prevent this loop. The thing is without these both linking i cant display any relationships between the 3 tables in charts.

The image below illustrates the 3 fact tables (circles black) and the 2 fields hightlighted green are the fields i want to link by common 'Care Group name' but if i do the loop appears.

Does anyone have any thoughts on how i can prevent such a loop?error loading image

3 Replies
Not applicable
Author

create a unique field incorporating all the linked fields

e.g. field_a & field_b & field_c as uni_field

Not applicable
Author

Hi what unique key do you propose based on diagram attached?
Not applicable
Author

Qlikview creates a link/join by matching field names in each table, if you want to avoid circurlar reference and link two tables then create a common field that is only common to those two tables.

e.g. if you have thre tables A, B, C, each table contains a field called customer. If you only want to join only tables A & B then create a field while loading the script of tables A & B

customer as customer_AB,

In your example you have a number of fields with the exact same, rename the fields unique (the ones you don't want to join on) to that table as you load the table otherwise a circular reference occurs. If you do want to link all of these common fields then you can create a master table like this:

LOAD * FROM TABLE_A;

CONCATENATE

LOAD * FROM TABLE_B;

CONCATENATE

LOAD * FROM TABLE_C;