Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
agigliotti
Partner - Champion
Partner - Champion

Qlikview circular loop - how to avoid it

Hello,

Attached is a sample qvw file with sample data and the circular loop.

What could be done in data model to avoid it ?

Could someone guide me in the right direction ?

Many thanks in advance.

Best Regards

Andrea

9 Replies
Anonymous
Not applicable

Hi Andrea,

Remove the table:

/*[Sales network-Item category]:

LOAD * INLINE [

    Sales network, Item category,

    I, PC

    I, SC

    F, PC

    H, SC

];

*/

as it is a linking table but all the table are already linked without it.

agigliotti
Partner - Champion
Partner - Champion
Author

Aron,

I need that table because a sales network can sell only items of categories linked.

antoniotiman
Master III
Master III

What about this Data Model ?

agigliotti
Partner - Champion
Partner - Champion
Author

did you merge four tables into one?

I don't think it's could works for my requirements.

specially because the end user has an input date (MM/DD/YYY) to submit and should be able to see what happened at that date, to what sales network and item category the sales agent belonged to.

Anonymous
Not applicable

You say 'the end user has an input date (MM/DD/YYY) to submit and should be able to see what happened at that date'

  • How do anticipate they will submit this date ?

  • Then what selection do you expect will happen ?

I somehow suspect you'll need to create a SCD [Slowly Changing Dimension] table quite likely by exploiting IntervalMatch().

Are there any other requirements not mentioned in your original question ?

satheshreddy
Creator III
Creator III

Hi Andrea,

if you want all tables with association better to cut association between two tables it will go out loops.

Regards

Sathish

agigliotti
Partner - Champion
Partner - Champion
Author

Thanks to all for your quickly reply.

Finally I decided to rename the field "Item category" of table "Sales network-Item category" to "Network category".

In this way I can show in UI both dimensions in order to check if the sales agent sold items that he should not.

BR

Andrea

hic
Former Employee
Former Employee

If you want some reading on circular references and how to solve them, take a look at Circular References.

HIC

vvvvvvizard
Partner - Specialist
Partner - Specialist

Comment out any one of the same field name that is appearing in two different tables which is causing the circular refeence