<?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 based on field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loop-based-on-field/m-p/1587008#M596298</link>
    <description>&lt;P&gt;&lt;EM&gt;Aha yup , preceding load and while loop did the trick !!&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Happy Qlik!!&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 31 May 2019 07:05:05 GMT</pubDate>
    <dc:creator>avinashelite</dc:creator>
    <dc:date>2019-05-31T07:05:05Z</dc:date>
    <item>
      <title>Loop based on field</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-based-on-field/m-p/1586026#M596288</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I need to create new records based on fields. I have 4 columns&amp;nbsp; Ord No, Freq, Amount,Due Date. Now I want to create a new record based on Freq and Due Date.&lt;/P&gt;&lt;P&gt;Please refer attached excel.&lt;/P&gt;&lt;P&gt;For Example:&lt;/P&gt;&lt;P&gt;If Freq is&amp;nbsp; 4 and Date is 15/Jan/19. I want to insert new records with increment of 4 months up to Next Year end (31/Dec/20). so the new records should be 15/May/19, 15/Sep/19, 15/Jan/20.... 15/Sep/20.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:26:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-based-on-field/m-p/1586026#M596288</guid>
      <dc:creator>Vengatesh</dc:creator>
      <dc:date>2024-11-16T03:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: Loop based on field</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-based-on-field/m-p/1586028#M596290</link>
      <description>&lt;P&gt;&lt;EM&gt;Basically&amp;nbsp; you want to duplicate the records for specific record combination . How about the other column data ? it should be duplicated ?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Easy way would be to create an resident load for the required records and create an&amp;nbsp; calendar according to your requirement and finally join and link those table&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;A href="https://community.qlik.com/t5/QlikView-Scripting/Creating-A-Master-Calendar/td-p/341286" target="_blank"&gt;https://community.qlik.com/t5/QlikView-Scripting/Creating-A-Master-Calendar/td-p/341286&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:31:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-based-on-field/m-p/1586028#M596290</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2019-05-29T09:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Loop based on field</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-based-on-field/m-p/1586035#M596292</link>
      <description>Thanks for the quick response,&lt;BR /&gt;However we already have the Master Calendar. I don't see how to create resident load for required records. And For your first question Yes, other than Due Date column everything else should be duplicated.</description>
      <pubDate>Wed, 29 May 2019 09:39:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-based-on-field/m-p/1586035#M596292</guid>
      <dc:creator>Vengatesh</dc:creator>
      <dc:date>2019-05-29T09:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Loop based on field</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-based-on-field/m-p/1586043#M596294</link>
      <description>&lt;P&gt;&lt;EM&gt;1.First create an calendar for the required date range&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2. Identify&amp;nbsp;the&amp;nbsp; records that needs to&amp;nbsp; be duplicate&amp;nbsp; with an flag&amp;nbsp; like 1 and 0&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;3.&amp;nbsp; Now in your calendar hard code the flag field with 1&amp;nbsp; with the same flag name&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;4. do an left join with the flag...Done , you will get the duplicate records for the records records with additional date&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Note . Date/Month field name should be same while joining&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:52:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-based-on-field/m-p/1586043#M596294</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2019-05-29T09:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: Loop based on field</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-based-on-field/m-p/1586051#M596295</link>
      <description>&lt;P&gt;&amp;nbsp;I have a master calendar 2016-2020&lt;/P&gt;&lt;P&gt;Every records needs to be duplicated based on Frequency Field.&lt;/P&gt;&lt;P&gt;I don't want to create records with unwanted dates.&lt;/P&gt;&lt;P&gt;For example in attached xl&lt;/P&gt;&lt;P&gt;For Order No- 2456 only FOUR duplicated records with new Dates should be there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 10:09:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-based-on-field/m-p/1586051#M596295</guid>
      <dc:creator>Vengatesh</dc:creator>
      <dc:date>2019-05-29T10:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: Loop based on field</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-based-on-field/m-p/1586527#M596296</link>
      <description>&lt;P&gt;LOAD [Ord No],&lt;BR /&gt;Frequency,&lt;BR /&gt;Amount,&lt;BR /&gt;[Due Date],&lt;BR /&gt;[Due Date] as [Future Date]&lt;BR /&gt;FROM&lt;BR /&gt;[C:\Users\avinash5\Downloads\Loop.xlsx]&lt;BR /&gt;(ooxml, embedded labels, header is 1 lines, table is Sheet1);&lt;BR /&gt;Concatenate&lt;/P&gt;&lt;P&gt;LOAD *,&lt;BR /&gt;IterNo() as Test,&lt;BR /&gt;AddMonths([Due Date] ,(Frequency+ (Frequency*IterNo()))) as [Future Date],&lt;BR /&gt;Date(MakeDate(2020,12,31),'DD/MM/YYYY') as test_date&lt;BR /&gt;While AddMonths([Due Date] ,(Frequency*IterNo())) &amp;lt;= Date(MakeDate(2020,12,31),'DD/MM/YYYY');&lt;/P&gt;&lt;P&gt;LOAD [Ord No],&lt;BR /&gt;Frequency,&lt;BR /&gt;Amount,&lt;BR /&gt;[Due Date]&lt;BR /&gt;FROM&lt;BR /&gt;[C:\Users\avinash5\Downloads\Loop.xlsx]&lt;BR /&gt;(ooxml, embedded labels, header is 1 lines, table is Sheet1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Got your issue now , please find the attachment for the solution&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Don't forget to like and&amp;nbsp; mark as solution&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 07:10:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-based-on-field/m-p/1586527#M596296</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2019-05-30T07:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Loop based on field</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-based-on-field/m-p/1587004#M596297</link>
      <description>&lt;P&gt;Excellent, This is what i was looking for. Thank you.&lt;/P&gt;&lt;P&gt;I made little changes. But overall this is great. Didn't know preceeding load can work in this way.&lt;/P&gt;&lt;P&gt;Sorry for the Delay.&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 06:54:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-based-on-field/m-p/1587004#M596297</guid>
      <dc:creator>Vengatesh</dc:creator>
      <dc:date>2019-05-31T06:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Loop based on field</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-based-on-field/m-p/1587008#M596298</link>
      <description>&lt;P&gt;&lt;EM&gt;Aha yup , preceding load and while loop did the trick !!&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Happy Qlik!!&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 07:05:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-based-on-field/m-p/1587008#M596298</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2019-05-31T07:05:05Z</dc:date>
    </item>
  </channel>
</rss>

