<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to avoid Loops? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-avoid-Loops/m-p/2112741#M90874</link>
    <description>&lt;P&gt;Hi Julia, Thank you for your help, it did help me avoiding the Loop. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Sep 2023 08:14:52 GMT</pubDate>
    <dc:creator>americanetsMD</dc:creator>
    <dc:date>2023-09-04T08:14:52Z</dc:date>
    <item>
      <title>How to avoid Loops?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-avoid-Loops/m-p/2112240#M90846</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;
&lt;P&gt;I have the following Situation:&lt;/P&gt;
&lt;P&gt;KreditorTab:&lt;/P&gt;
&lt;P&gt;KreditorNr,&lt;/P&gt;
&lt;P&gt;KreditorGroupNr,&lt;/P&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DebitorTab:&lt;/P&gt;
&lt;P&gt;DebitorNr,&lt;/P&gt;
&lt;P&gt;DebitorGroupNr,&lt;/P&gt;
&lt;P&gt;.....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FactTab:&lt;/P&gt;
&lt;P&gt;KreditorNr,&lt;/P&gt;
&lt;P&gt;DebitorNr,&lt;/P&gt;
&lt;P&gt;Values,&lt;/P&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NEW TABLE!! - it was created a new table in which are shown the groups that exist in both DebitorTab and KreditorTab. This Table contains the following columns:&lt;/P&gt;
&lt;P&gt;commonGroupTab:&lt;/P&gt;
&lt;P&gt;DebitorNr,&lt;/P&gt;
&lt;P&gt;KreditorNr,&lt;/P&gt;
&lt;P&gt;commonGroupNumber&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now i need to join somehow the table commonGroupTab to my FactTab, so that i can later show in my report the difference in value between kreditor and debitor, based on the Group field. Any my try leads to a LOOP or to the result that the commonGroupNumber does not communicate within the tables.&lt;/P&gt;
&lt;P&gt;Any Ideas on how could i solve this task?&lt;/P&gt;
&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 10:49:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-avoid-Loops/m-p/2112240#M90846</guid>
      <dc:creator>americanetsMD</dc:creator>
      <dc:date>2023-09-01T10:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid Loops?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-avoid-Loops/m-p/2112261#M90849</link>
      <description>&lt;P&gt;Hi AmericanetsMD,&lt;/P&gt;
&lt;P&gt;my idea is to add a new combined field [KreditorNr|DebitorNr] to the tables where there are both&amp;nbsp;[KreditorNr] and [DebitorNr]&amp;nbsp; fields (tables [&lt;SPAN&gt;commonGroupTab] and [FactTab]). And then&amp;nbsp;&lt;/SPAN&gt;to create a [LinkTable] which will contain all combinations of [ KreditorNr], [DebitorNr] and the new combined field [KreditorNr|DebitorNr].&amp;nbsp; Then you need to drop [KreditorNr], [DebitorNr] from tables [&lt;SPAN&gt;commonGroupTab] and [FactTab].&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;So tables [&lt;SPAN&gt;KreditorTab] and [DebitorTab] would be connected with Link Table by [KreditorNr] and [DebitorNr] fields, and&amp;nbsp;tables [commonGroupTab] and [FactTab] would be connected by field [KreditorNr|DebitorNr].&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Then you will avoid any loops.&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;FactTab:
KreditorNr &amp;amp;'|'&amp;amp; DebitorNr as [KreditorNr|DebitorNr],
KreditorNr,
DebitorNr,
Values,
....

commonGroupTab:
KreditorNr &amp;amp;'|'&amp;amp; DebitorNr as [KreditorNr|DebitorNr],
DebitorNr,
KreditorNr,
commonGroupNumber



LinkTable:
LOAD DISTINCT
KreditorNr
FROM KreditorTab;

concatenate
LOAD DISTINCT
DebitorNr
FROM DebitorTab;

concatenate
LOAD DISTINCT
KreditorNr,
DebitorNr,
KreditorNr|DebitorNr,
FROM FactTab;

concatenate
LOAD DISTINCT
KreditorNr,
DebitorNr,
KreditorNr|DebitorNr,
FROM commonGroupTab;

drop fields KreditorNr, DebitorNr from FactTab;
drop fields KreditorNr, DebitorNr from commonGroupTab;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 11:32:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-avoid-Loops/m-p/2112261#M90849</guid>
      <dc:creator>_Julia_</dc:creator>
      <dc:date>2023-09-01T11:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid Loops?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-avoid-Loops/m-p/2112741#M90874</link>
      <description>&lt;P&gt;Hi Julia, Thank you for your help, it did help me avoiding the Loop. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2023 08:14:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-avoid-Loops/m-p/2112741#M90874</guid>
      <dc:creator>americanetsMD</dc:creator>
      <dc:date>2023-09-04T08:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid Loops?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-avoid-Loops/m-p/2112762#M90876</link>
      <description>&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 13:32:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-avoid-Loops/m-p/2112762#M90876</guid>
      <dc:creator>americanetsMD</dc:creator>
      <dc:date>2023-09-06T13:32:04Z</dc:date>
    </item>
  </channel>
</rss>

