<?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 Approach to looping through and comparing data in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Approach-to-looping-through-and-comparing-data/m-p/2447402#M97752</link>
    <description>&lt;P&gt;Hello.&lt;/P&gt;
&lt;P&gt;Lets say I have Table A:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Table A&lt;/P&gt;
&lt;P&gt;- Id&lt;/P&gt;
&lt;P&gt;- EnterDate&lt;/P&gt;
&lt;P&gt;- StaffNum&lt;/P&gt;
&lt;P&gt;- Site&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to find:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Query 1. All rows from Table A where Site = 'North'&lt;/P&gt;
&lt;P&gt;Query 2. For each row returned in Query 1, I then need to find any rows in Table A where the StaffNum is equal, Site = 'South' and EnterDate is greater than the EnterDate returned in Query 1.&lt;/P&gt;
&lt;P&gt;Lost on this one, any advice on starter code would be greatly appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 01 May 2024 13:38:36 GMT</pubDate>
    <dc:creator>ant2</dc:creator>
    <dc:date>2024-05-01T13:38:36Z</dc:date>
    <item>
      <title>Approach to looping through and comparing data</title>
      <link>https://community.qlik.com/t5/App-Development/Approach-to-looping-through-and-comparing-data/m-p/2447402#M97752</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;
&lt;P&gt;Lets say I have Table A:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Table A&lt;/P&gt;
&lt;P&gt;- Id&lt;/P&gt;
&lt;P&gt;- EnterDate&lt;/P&gt;
&lt;P&gt;- StaffNum&lt;/P&gt;
&lt;P&gt;- Site&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to find:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Query 1. All rows from Table A where Site = 'North'&lt;/P&gt;
&lt;P&gt;Query 2. For each row returned in Query 1, I then need to find any rows in Table A where the StaffNum is equal, Site = 'South' and EnterDate is greater than the EnterDate returned in Query 1.&lt;/P&gt;
&lt;P&gt;Lost on this one, any advice on starter code would be greatly appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 13:38:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Approach-to-looping-through-and-comparing-data/m-p/2447402#M97752</guid>
      <dc:creator>ant2</dc:creator>
      <dc:date>2024-05-01T13:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Approach to looping through and comparing data</title>
      <link>https://community.qlik.com/t5/App-Development/Approach-to-looping-through-and-comparing-data/m-p/2447435#M97753</link>
      <description>&lt;P&gt;"&lt;SPAN&gt;For each row returned in Query 1,"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Should the Query 2 then match first on id field?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-Rob&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 14:32:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Approach-to-looping-through-and-comparing-data/m-p/2447435#M97753</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2024-05-01T14:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Approach to looping through and comparing data</title>
      <link>https://community.qlik.com/t5/App-Development/Approach-to-looping-through-and-comparing-data/m-p/2447449#M97755</link>
      <description>&lt;P&gt;Hi Rob&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Query 2 should first match StaffNum, e.g. if Query 1 returned a row where StaffNum was 12345, then Query 2 then needs to find all rows in Table A where StaffNum is 12345, but also where&amp;nbsp;Site = 'South' and EnterDate greater than the EnterDate returned in Query 1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 14:52:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Approach-to-looping-through-and-comparing-data/m-p/2447449#M97755</guid>
      <dc:creator>ant2</dc:creator>
      <dc:date>2024-05-01T14:52:33Z</dc:date>
    </item>
  </channel>
</rss>

