Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi there,
I have been hitting the error "One or more loops have been detected in your database structure. ..", and am not sure how to resolve it.
Below is a rough schematic diagram of the tables that I would like to associate with one another, however using different unique identifiers. (screenshot)
End of the day, I hope to achieve something as per screenshot as well.
Please advise me on where did I go wrong?
Thanks
Kim
Hi Kim,
Since Qlik doesn't work well with loops, you need to break the chain.
The Qlik way is that you make a selection in one field, it affects the entire table, and the tables connected to it.
It moves on with the same way to other tables until it ends.
When there is a loop, Qlik's engine doesn't know when to stop, hence the problem with the loops.
As for fixing it, what you need to do with your tables, is concatenating them (same as Union command in SQL).
You need to append the rows coming from your sells and purchases, give them some status like 'Sell' as Type in the first table, and 'Purchase' as Type in the second table.
Last, if you would like to sum the data together (Buy-Sell), you can do it either in the UI or in the script.
I hope it helps,
Eliran.
The following Design Blog post should be helpful as well:
https://community.qlik.com/t5/Qlik-Design-Blog/Circular-References/ba-p/1469332
Regards,
Brett
Hi,
We just released a new video in our YouTube channel related to your question.
I hope it helps!
IPC Tips - Removing Circular References
https://youtu.be/s-QA8fbQDC4
Regards,
Mark Costa