<?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 Iteration is not working for every item in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Iteration-is-not-working-for-every-item/m-p/1689342#M450536</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am trying to display all the dates(in a range which I've defined) with 0 value if there is no data . But inside the script, the iteration seems not working for every item under product column. Currently only item 'Fruits' is displaying full range of date with respective sales. The rest 'Kitchen items', 'Vegetables','Clothes',..are not showing all the dates. Something is missing in my code. Can shed some light to make this working correctly?&lt;/P&gt;&lt;P&gt;I've attached my script too.&lt;/P&gt;&lt;P&gt;//iteration is working only for one product&lt;BR /&gt;SOURCE:&lt;BR /&gt;load * inline [&lt;BR /&gt;Product, Price, LogDate&lt;BR /&gt;Fruits, 100, 22/03/2020&lt;BR /&gt;Fruits, 90, 21/03/2020&lt;BR /&gt;Fruits, 150, 03/03/2020&lt;BR /&gt;Fruits, 160, 04/03/2020&lt;BR /&gt;Fruits, 170, 08/03/2020&lt;BR /&gt;Vegetable, 200, 22/03/2020&lt;BR /&gt;Vegetable, 200, 21/03/2020&lt;BR /&gt;'Kitchen Items', 200, 20/03/2020&lt;BR /&gt;Vegetable, 200, 19/03/2020&lt;BR /&gt;Clothes, 200, 21/03/2020&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;TempTable_Rates:&lt;BR /&gt;NoConcatenate Load Product, LogDate, Price Resident SOURCE ;&lt;/P&gt;&lt;P&gt;MinMaxDate:&lt;BR /&gt;Load Product, Min(LogDate) as MinDate, Max(LogDate) as MaxDate resident TempTable_Rates&lt;BR /&gt;Group By Product;&lt;BR /&gt;&lt;BR /&gt;Join (TempTable_Rates)&lt;BR /&gt;Load&lt;BR /&gt;Product,&lt;BR /&gt;Date(iterno()+MinDate) as LogDate&lt;BR /&gt;Resident MinMaxDate&lt;BR /&gt;While iterno()+MinDate &amp;lt;= MaxDate;&lt;/P&gt;&lt;P&gt;Rates:&lt;BR /&gt;NoConcatenate Load Product, LogDate,&lt;BR /&gt;If( IsNull( Price ), 0, Price ) as Price&lt;BR /&gt;Resident TempTable_Rates&lt;BR /&gt;Order By Product, LogDate ;&lt;/P&gt;&lt;P&gt;Drop Table MinMaxDate, TempTable_Rates;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 31 Mar 2020 08:45:17 GMT</pubDate>
    <dc:creator>TheQlikLearner</dc:creator>
    <dc:date>2020-03-31T08:45:17Z</dc:date>
    <item>
      <title>Iteration is not working for every item</title>
      <link>https://community.qlik.com/t5/QlikView/Iteration-is-not-working-for-every-item/m-p/1689342#M450536</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am trying to display all the dates(in a range which I've defined) with 0 value if there is no data . But inside the script, the iteration seems not working for every item under product column. Currently only item 'Fruits' is displaying full range of date with respective sales. The rest 'Kitchen items', 'Vegetables','Clothes',..are not showing all the dates. Something is missing in my code. Can shed some light to make this working correctly?&lt;/P&gt;&lt;P&gt;I've attached my script too.&lt;/P&gt;&lt;P&gt;//iteration is working only for one product&lt;BR /&gt;SOURCE:&lt;BR /&gt;load * inline [&lt;BR /&gt;Product, Price, LogDate&lt;BR /&gt;Fruits, 100, 22/03/2020&lt;BR /&gt;Fruits, 90, 21/03/2020&lt;BR /&gt;Fruits, 150, 03/03/2020&lt;BR /&gt;Fruits, 160, 04/03/2020&lt;BR /&gt;Fruits, 170, 08/03/2020&lt;BR /&gt;Vegetable, 200, 22/03/2020&lt;BR /&gt;Vegetable, 200, 21/03/2020&lt;BR /&gt;'Kitchen Items', 200, 20/03/2020&lt;BR /&gt;Vegetable, 200, 19/03/2020&lt;BR /&gt;Clothes, 200, 21/03/2020&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;TempTable_Rates:&lt;BR /&gt;NoConcatenate Load Product, LogDate, Price Resident SOURCE ;&lt;/P&gt;&lt;P&gt;MinMaxDate:&lt;BR /&gt;Load Product, Min(LogDate) as MinDate, Max(LogDate) as MaxDate resident TempTable_Rates&lt;BR /&gt;Group By Product;&lt;BR /&gt;&lt;BR /&gt;Join (TempTable_Rates)&lt;BR /&gt;Load&lt;BR /&gt;Product,&lt;BR /&gt;Date(iterno()+MinDate) as LogDate&lt;BR /&gt;Resident MinMaxDate&lt;BR /&gt;While iterno()+MinDate &amp;lt;= MaxDate;&lt;/P&gt;&lt;P&gt;Rates:&lt;BR /&gt;NoConcatenate Load Product, LogDate,&lt;BR /&gt;If( IsNull( Price ), 0, Price ) as Price&lt;BR /&gt;Resident TempTable_Rates&lt;BR /&gt;Order By Product, LogDate ;&lt;/P&gt;&lt;P&gt;Drop Table MinMaxDate, TempTable_Rates;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 08:45:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Iteration-is-not-working-for-every-item/m-p/1689342#M450536</guid>
      <dc:creator>TheQlikLearner</dc:creator>
      <dc:date>2020-03-31T08:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Iteration is not working for every item</title>
      <link>https://community.qlik.com/t5/QlikView/Iteration-is-not-working-for-every-item/m-p/1689779#M450552</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Try like below, hope it helps your requirement.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;SOURCE:&lt;BR /&gt;load * inline [&lt;BR /&gt;Product, Price, LogDate&lt;BR /&gt;Fruits, 100, 22/03/2020&lt;BR /&gt;Fruits, 90, 21/03/2020&lt;BR /&gt;Fruits, 150, 03/03/2020&lt;BR /&gt;Fruits, 160, 04/03/2020&lt;BR /&gt;Fruits, 170, 08/03/2020&lt;BR /&gt;Vegetable, 200, 22/03/2020&lt;BR /&gt;Vegetable, 200, 21/03/2020&lt;BR /&gt;'Kitchen Items', 200, 20/03/2020&lt;BR /&gt;Vegetable, 200, 19/03/2020&lt;BR /&gt;Clothes, 200, 21/03/2020&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;TempTable_Rates:&lt;BR /&gt;NoConcatenate Load Product, LogDate, Price Resident SOURCE ;&lt;/P&gt;&lt;P&gt;MinMaxDate:&lt;BR /&gt;Load Product, Min(LogDate) as MinDate, Max(LogDate) as MaxDate resident TempTable_Rates&lt;BR /&gt;Group By Product;&lt;/P&gt;&lt;P&gt;//Join (TempTable_Rates)&lt;BR /&gt;Prod:&lt;BR /&gt;LOAD Distinct Product Resident SOURCE;&lt;BR /&gt;Join(Prod)&lt;BR /&gt;Load&lt;BR /&gt;Date(iterno()+MinDate) as LogDate&lt;BR /&gt;Resident MinMaxDate&lt;BR /&gt;While iterno()+MinDate &amp;lt;= MaxDate;&lt;/P&gt;&lt;P&gt;Join (TempTable_Rates)&lt;BR /&gt;LOAD * Resident Prod;&lt;/P&gt;&lt;P&gt;DROP Table Prod;&lt;/P&gt;&lt;P&gt;Rates:&lt;BR /&gt;NoConcatenate Load Product, LogDate,&lt;BR /&gt;If( IsNull( Price ), 0, Price ) as Price&lt;BR /&gt;Resident TempTable_Rates&lt;BR /&gt;Order By Product, LogDate ;&lt;/P&gt;&lt;P&gt;Drop Table MinMaxDate, TempTable_Rates, SOURCE;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 10:22:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Iteration-is-not-working-for-every-item/m-p/1689779#M450552</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2020-04-01T10:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Iteration is not working for every item</title>
      <link>https://community.qlik.com/t5/QlikView/Iteration-is-not-working-for-every-item/m-p/1690126#M450576</link>
      <description>&lt;P&gt;Thank you for the help. Now it is looping for every product. But the original script is still incorrect . For the product(Fruit- the dates start from 3/03/2020) and the rest of the products(clothes, kitchen items,clothes,...starts from 04/03/2020) the dates are missing. That means Iteration still has an issue-min and max date are giving wrong result. However I've tried with another script(referenced from the post from &lt;A href="https://stackoverflow.com/questions/49530748/qlikview-populating-missing-dates-and-peek-previous-date-values-for-a-given-id" target="_blank"&gt;https://stackoverflow.com/questions/49530748/qlikview-populating-missing-dates-and-peek-previous-date-values-for-a-given-id&lt;/A&gt;) and it is giving me result ,except that I have to get some help from expression to display exactly what I want.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2020 07:21:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Iteration-is-not-working-for-every-item/m-p/1690126#M450576</guid>
      <dc:creator>TheQlikLearner</dc:creator>
      <dc:date>2020-04-02T07:21:15Z</dc:date>
    </item>
  </channel>
</rss>

