<?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 with multiple condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/loop-with-multiple-condition/m-p/1573694#M442359</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Thanks i rectified the error thanks for the solution really appreciated.&lt;BR /&gt;&lt;BR /&gt;Regards</description>
    <pubDate>Fri, 26 Apr 2019 09:21:19 GMT</pubDate>
    <dc:creator>anisha_nan</dc:creator>
    <dc:date>2019-04-26T09:21:19Z</dc:date>
    <item>
      <title>loop with multiple condition</title>
      <link>https://community.qlik.com/t5/QlikView/loop-with-multiple-condition/m-p/1571921#M442200</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;1. I have requirement we&amp;nbsp; need to pick the Rate value column on the maxdate for six ID combination.&lt;/P&gt;&lt;P&gt;2. wherever there is no Rate Value i.e Rate is Null it should repeat the loop atleast for the 6 times of maxdate.&lt;/P&gt;&lt;P&gt;for eg: if Rate is Null it will go and check 6th ID max date and display the value ,if 6th ID is Null then will check for 5th ID Maxdate Rate value,and if 5th ID is Null will check for 4th Maxdate Rate Value and so on.....&lt;/P&gt;&lt;P&gt;Do we need to use Peek or Alt function.&lt;/P&gt;&lt;P&gt;I hope its clear the requirement.&lt;/P&gt;&lt;P&gt;Please find the attached Data set.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:00:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loop-with-multiple-condition/m-p/1571921#M442200</guid>
      <dc:creator>anisha_nan</dc:creator>
      <dc:date>2024-11-16T21:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: loop with multiple condition</title>
      <link>https://community.qlik.com/t5/QlikView/loop-with-multiple-condition/m-p/1572087#M442221</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt; can you please have a look .&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;</description>
      <pubDate>Tue, 23 Apr 2019 12:43:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loop-with-multiple-condition/m-p/1572087#M442221</guid>
      <dc:creator>anisha_nan</dc:creator>
      <dc:date>2019-04-23T12:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: loop with multiple condition</title>
      <link>https://community.qlik.com/t5/QlikView/loop-with-multiple-condition/m-p/1572098#M442223</link>
      <description>&lt;P&gt;Think this way?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Load RateValue,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ID1,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ID2,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ID3,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ID4,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ID5,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ID6,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;AutoNumber(Iterno(), ID1&amp;amp;ID2&amp;amp;ID3&amp;amp;ID4&amp;amp;ID5&amp;amp;ID6) as ID&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;From Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET vMax6Date = Peek('ID', 6, 'Table');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If Len(RateValue)=0 Then&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;For i=1 to 6&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Table_6_Record:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Load Max(DateField) as Max_6_Date from Table Where ID='$(vMax6Date)';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Left Join(Table_6_Record)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Load RateValue, &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ID1, &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ID2, &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ID3, &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ID4, &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ID5, &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ID6, &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ID,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;If(IsNull(RateValue) and ID=6, RateValue, Peek('RateValue_Copy')+1) as RateValue_Copy &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Resident Table;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Next i&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;End If&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 12:55:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loop-with-multiple-condition/m-p/1572098#M442223</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2019-04-23T12:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: loop with multiple condition</title>
      <link>https://community.qlik.com/t5/QlikView/loop-with-multiple-condition/m-p/1573577#M442355</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;While loading this code i am getting error .&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Fri, 26 Apr 2019 06:10:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loop-with-multiple-condition/m-p/1573577#M442355</guid>
      <dc:creator>anisha_nan</dc:creator>
      <dc:date>2019-04-26T06:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: loop with multiple condition</title>
      <link>https://community.qlik.com/t5/QlikView/loop-with-multiple-condition/m-p/1573694#M442359</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Thanks i rectified the error thanks for the solution really appreciated.&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Fri, 26 Apr 2019 09:21:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loop-with-multiple-condition/m-p/1573694#M442359</guid>
      <dc:creator>anisha_nan</dc:creator>
      <dc:date>2019-04-26T09:21:19Z</dc:date>
    </item>
  </channel>
</rss>

