<?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 For Loop Next in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/For-Loop-Next/m-p/1609731#M445045</link>
    <description>&lt;P&gt;Main:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;&lt;BR /&gt;Values, Month, Year,Material_code&lt;BR /&gt;1, Oct, 2018,&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;2000001&lt;/STRONG&gt;&lt;BR /&gt;2, Nov, 2018, 2000001&lt;BR /&gt;1, Dec, 2018, 2000001&lt;BR /&gt;0, Jan, 2019, 2000001&lt;BR /&gt;0, Feb, 2019, 2000001&lt;BR /&gt;0, Mar, 2019, 2000001&lt;BR /&gt;0, Apr, 2019, 2000001&lt;BR /&gt;5, May, 2019, 2000001&lt;BR /&gt;0, Jun, 2019, 2000001&lt;BR /&gt;0, Jul, 2019, 2000001&lt;BR /&gt;6, Oct, 2018,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;2000002&lt;/STRONG&gt;&lt;BR /&gt;9, Nov, 2018, 2000002&lt;BR /&gt;4, Dec, 2018, 2000002&lt;BR /&gt;0, Jan, 2019, 2000002&lt;BR /&gt;0, Feb, 2019, 2000002&lt;BR /&gt;0, Mar, 2019, 2000002&lt;BR /&gt;7, Apr, 2019, 2000002&lt;BR /&gt;0, May, 2019, 2000002&lt;BR /&gt;2, Jun, 2019, 2000002&lt;BR /&gt;0, Jul, 2019, 2000002&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is Just an example of my requirement,&lt;/P&gt;&lt;P&gt;My requirement is :&lt;/P&gt;&lt;P&gt;Main:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;&lt;BR /&gt;Values, Month, Year,Material_code&lt;BR /&gt;1, Oct, 2018,&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;2000001&lt;/STRONG&gt;&lt;BR /&gt;2, Nov, 2018, 2000001&lt;BR /&gt;1, Dec, 2018, 2000001&lt;BR /&gt;1, Jan, 2019, 2000001&lt;BR /&gt;1, Feb, 2019, 2000001&lt;BR /&gt;1, Mar, 2019, 2000001&lt;BR /&gt;1, Apr, 2019, 2000001&lt;BR /&gt;5, May, 2019, 2000001&lt;BR /&gt;5, Jun, 2019, 2000001&lt;BR /&gt;5, Jul, 2019, 2000001&lt;BR /&gt;6, Oct, 2018,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;2000002&lt;/STRONG&gt;&lt;BR /&gt;9, Nov, 2018, 2000002&lt;BR /&gt;4, Dec, 2018, 2000002&lt;BR /&gt;4, Jan, 2019, 2000002&lt;BR /&gt;4, Feb, 2019, 2000002&lt;BR /&gt;4, Mar, 2019, 2000002&lt;BR /&gt;7, Apr, 2019, 2000002&lt;BR /&gt;7, May, 2019, 2000002&lt;BR /&gt;2, Jun, 2019, 2000002&lt;BR /&gt;2, Jul, 2019, 2000002&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;the Value of the Previous Month should be displayed in my next month value if only the Value is '0' by using For Loop Function..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Aug 2019 11:11:12 GMT</pubDate>
    <dc:creator>libinanto95</dc:creator>
    <dc:date>2019-08-06T11:11:12Z</dc:date>
    <item>
      <title>For Loop Next</title>
      <link>https://community.qlik.com/t5/QlikView/For-Loop-Next/m-p/1609731#M445045</link>
      <description>&lt;P&gt;Main:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;&lt;BR /&gt;Values, Month, Year,Material_code&lt;BR /&gt;1, Oct, 2018,&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;2000001&lt;/STRONG&gt;&lt;BR /&gt;2, Nov, 2018, 2000001&lt;BR /&gt;1, Dec, 2018, 2000001&lt;BR /&gt;0, Jan, 2019, 2000001&lt;BR /&gt;0, Feb, 2019, 2000001&lt;BR /&gt;0, Mar, 2019, 2000001&lt;BR /&gt;0, Apr, 2019, 2000001&lt;BR /&gt;5, May, 2019, 2000001&lt;BR /&gt;0, Jun, 2019, 2000001&lt;BR /&gt;0, Jul, 2019, 2000001&lt;BR /&gt;6, Oct, 2018,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;2000002&lt;/STRONG&gt;&lt;BR /&gt;9, Nov, 2018, 2000002&lt;BR /&gt;4, Dec, 2018, 2000002&lt;BR /&gt;0, Jan, 2019, 2000002&lt;BR /&gt;0, Feb, 2019, 2000002&lt;BR /&gt;0, Mar, 2019, 2000002&lt;BR /&gt;7, Apr, 2019, 2000002&lt;BR /&gt;0, May, 2019, 2000002&lt;BR /&gt;2, Jun, 2019, 2000002&lt;BR /&gt;0, Jul, 2019, 2000002&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is Just an example of my requirement,&lt;/P&gt;&lt;P&gt;My requirement is :&lt;/P&gt;&lt;P&gt;Main:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;&lt;BR /&gt;Values, Month, Year,Material_code&lt;BR /&gt;1, Oct, 2018,&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;2000001&lt;/STRONG&gt;&lt;BR /&gt;2, Nov, 2018, 2000001&lt;BR /&gt;1, Dec, 2018, 2000001&lt;BR /&gt;1, Jan, 2019, 2000001&lt;BR /&gt;1, Feb, 2019, 2000001&lt;BR /&gt;1, Mar, 2019, 2000001&lt;BR /&gt;1, Apr, 2019, 2000001&lt;BR /&gt;5, May, 2019, 2000001&lt;BR /&gt;5, Jun, 2019, 2000001&lt;BR /&gt;5, Jul, 2019, 2000001&lt;BR /&gt;6, Oct, 2018,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;2000002&lt;/STRONG&gt;&lt;BR /&gt;9, Nov, 2018, 2000002&lt;BR /&gt;4, Dec, 2018, 2000002&lt;BR /&gt;4, Jan, 2019, 2000002&lt;BR /&gt;4, Feb, 2019, 2000002&lt;BR /&gt;4, Mar, 2019, 2000002&lt;BR /&gt;7, Apr, 2019, 2000002&lt;BR /&gt;7, May, 2019, 2000002&lt;BR /&gt;2, Jun, 2019, 2000002&lt;BR /&gt;2, Jul, 2019, 2000002&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;the Value of the Previous Month should be displayed in my next month value if only the Value is '0' by using For Loop Function..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2019 11:11:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Loop-Next/m-p/1609731#M445045</guid>
      <dc:creator>libinanto95</dc:creator>
      <dc:date>2019-08-06T11:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: For Loop Next</title>
      <link>https://community.qlik.com/t5/QlikView/For-Loop-Next/m-p/1609744#M445046</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Main:
LOAD *,
	 Date(MakeDate(Year, Month(Date#(Month, 'MMM'))), 'MMM-YYYY') as MonthYear;
LOAD * INLINE [
    Values, Month, Year, Material_code
    1, Oct, 2018, 2000001
    2, Nov, 2018, 2000001
    1, Dec, 2018, 2000001
    0, Jan, 2019, 2000001
    0, Feb, 2019, 2000001
    0, Mar, 2019, 2000001
    0, Apr, 2019, 2000001
    5, May, 2019, 2000001
    0, Jun, 2019, 2000001
    0, Jul, 2019, 2000001
    6, Oct, 2018, 2000002
    9, Nov, 2018, 2000002
    4, Dec, 2018, 2000002
    0, Jan, 2019, 2000002
    0, Feb, 2019, 2000002
    0, Mar, 2019, 2000002
    7, Apr, 2019, 2000002
    0, May, 2019, 2000002
    2, Jun, 2019, 2000002
    0, Jul, 2019, 2000002
];

FinalTable:
NoConcatenate
LOAD Material_code,
	 MonthYear,
	 Month,
	 Year,
	 If(Material_code = Previous(Material_code), If(Values = 0, Peek('Values'), Values), Values) as Values
Resident Main
Order By Material_code, MonthYear;

DROP Table Main;&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 06 Aug 2019 11:26:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Loop-Next/m-p/1609744#M445046</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-08-06T11:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: For Loop Next</title>
      <link>https://community.qlik.com/t5/QlikView/For-Loop-Next/m-p/1616605#M445479</link>
      <description>&lt;P&gt;Anto, did Sunny's post help you resolve your use case?&amp;nbsp; If so, please consider using the Accept as Solution button on his post to let others know this worked for you.&amp;nbsp; If you still need help, provide an update on things, so others can see if they can help.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 13:18:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Loop-Next/m-p/1616605#M445479</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-08-26T13:18:14Z</dc:date>
    </item>
  </channel>
</rss>

