<?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: Loop syntax in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Loop-syntax/m-p/2102907#M90105</link>
    <description>&lt;P&gt;You could use iterno()&amp;nbsp; &amp;nbsp;&lt;A href="https://help.qlik.com/en-US/sense/May2023/Subsystems/Hub/Content/Sense_Hub/Scripting/CounterFunctions/IterNo.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/May2023/Subsystems/Hub/Content/Sense_Hub/Scripting/CounterFunctions/IterNo.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;See my example&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Table_Tmp:&lt;BR /&gt;LOAD * inline [&lt;BR /&gt;transaction amount, date , loop date&lt;BR /&gt;100 , 01/01/2023 , 10/01/2023&lt;BR /&gt;140 , 01/02/2023 , 10/02/2023&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;Final_Table:&lt;BR /&gt;LOAD&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "transaction amount",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; date("date"+(IterNo()-1)) as "date"&lt;BR /&gt;Resident Table_Tmp While "date"+(IterNo()-1) &amp;lt;= "loop date";&lt;BR /&gt;//&lt;BR /&gt;Drop Table Table_Tmp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="afurtado_0-1691369367533.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113716i34735622418B7290/image-size/medium?v=v2&amp;amp;px=400" role="button" title="afurtado_0-1691369367533.png" alt="afurtado_0-1691369367533.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Aug 2023 00:49:57 GMT</pubDate>
    <dc:creator>afurtado</dc:creator>
    <dc:date>2023-08-07T00:49:57Z</dc:date>
    <item>
      <title>Loop syntax</title>
      <link>https://community.qlik.com/t5/App-Development/Loop-syntax/m-p/2102902#M90104</link>
      <description>&lt;P&gt;Hive mind!&lt;/P&gt;
&lt;P&gt;I have a requirement to create a table with one row for every date with various details from a resident table.&lt;/P&gt;
&lt;P&gt;I need help with syntax of:&lt;/P&gt;
&lt;P&gt;for every day between Min Date and Max Date in resident Transaction table (including days for which there are no transactions)&lt;/P&gt;
&lt;P&gt;Load&lt;/P&gt;
&lt;P&gt;sum(transaction amount),&lt;/P&gt;
&lt;P&gt;loop date,&lt;/P&gt;
&lt;P&gt;dimension&lt;/P&gt;
&lt;P&gt;resident transaction&lt;/P&gt;
&lt;P&gt;where transaction date&amp;lt;=loop date&lt;/P&gt;
&lt;P&gt;group by dimension&lt;/P&gt;
&lt;P&gt;next date;&lt;/P&gt;
&lt;P&gt;Thanks in advance for any help!!&lt;/P&gt;</description>
      <pubDate>Sun, 06 Aug 2023 22:52:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loop-syntax/m-p/2102902#M90104</guid>
      <dc:creator>desert_dweller</dc:creator>
      <dc:date>2023-08-06T22:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: Loop syntax</title>
      <link>https://community.qlik.com/t5/App-Development/Loop-syntax/m-p/2102907#M90105</link>
      <description>&lt;P&gt;You could use iterno()&amp;nbsp; &amp;nbsp;&lt;A href="https://help.qlik.com/en-US/sense/May2023/Subsystems/Hub/Content/Sense_Hub/Scripting/CounterFunctions/IterNo.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/May2023/Subsystems/Hub/Content/Sense_Hub/Scripting/CounterFunctions/IterNo.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;See my example&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Table_Tmp:&lt;BR /&gt;LOAD * inline [&lt;BR /&gt;transaction amount, date , loop date&lt;BR /&gt;100 , 01/01/2023 , 10/01/2023&lt;BR /&gt;140 , 01/02/2023 , 10/02/2023&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;Final_Table:&lt;BR /&gt;LOAD&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "transaction amount",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; date("date"+(IterNo()-1)) as "date"&lt;BR /&gt;Resident Table_Tmp While "date"+(IterNo()-1) &amp;lt;= "loop date";&lt;BR /&gt;//&lt;BR /&gt;Drop Table Table_Tmp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="afurtado_0-1691369367533.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113716i34735622418B7290/image-size/medium?v=v2&amp;amp;px=400" role="button" title="afurtado_0-1691369367533.png" alt="afurtado_0-1691369367533.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 00:49:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loop-syntax/m-p/2102907#M90105</guid>
      <dc:creator>afurtado</dc:creator>
      <dc:date>2023-08-07T00:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Loop syntax</title>
      <link>https://community.qlik.com/t5/App-Development/Loop-syntax/m-p/2105282#M90280</link>
      <description>&lt;P&gt;Thank you, this pointed me in the right direction!&lt;/P&gt;</description>
      <pubDate>Sun, 13 Aug 2023 21:55:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loop-syntax/m-p/2105282#M90280</guid>
      <dc:creator>desert_dweller</dc:creator>
      <dc:date>2023-08-13T21:55:03Z</dc:date>
    </item>
  </channel>
</rss>

