<?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: peek with condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/peek-with-condition/m-p/906885#M987565</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks brother &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Jul 2015 12:10:39 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-07-21T12:10:39Z</dc:date>
    <item>
      <title>peek with condition</title>
      <link>https://community.qlik.com/t5/QlikView/peek-with-condition/m-p/906877#M987557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt; text-align: justify;"&gt;Hi all &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; text-align: justify;"&gt;I having&amp;nbsp; table with material ,monthname and unit and rates I had generated the missing data using autogenrate&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; text-align: justify;"&gt;Now I want rates to be filled with the rates of its previous month where the rate of the material is available but the rates should be of respective unit and material ..i had tried using peek function bt couldnt get rid of null values yet pls suggest&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; text-align: justify;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; text-align: justify;"&gt;Thanking You&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; text-align: justify;"&gt;Vinayagam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 01:49:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/peek-with-condition/m-p/906877#M987557</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-21T01:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: peek with condition</title>
      <link>https://community.qlik.com/t5/QlikView/peek-with-condition/m-p/906878#M987558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this may be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD UNIT, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MATERIAL, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MonthName(Date#(MONTH, 'MMM YYYY')) as MonthYear, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RATE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Community_173305.xlsx&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(ooxml, embedded labels, table is Sheet1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FinalTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD UNIT,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; MATERIAL,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; MonthYear,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; RATE,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If(Peek('UNIT') = UNIT and Peek('MATERIAL') = MATERIAL, ALT(PEEK('NEWRATE'), RATE), RATE) as NEWRATE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Order By UNIT, MATERIAL, MonthYear;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;&lt;IMG __jive_id="93422" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/93422_Capture.PNG" /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 02:31:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/peek-with-condition/m-p/906878#M987558</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-21T02:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: peek with condition</title>
      <link>https://community.qlik.com/t5/QlikView/peek-with-condition/m-p/906879#M987559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sir&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the valuable sugeestion but as per my requirement the value of MAT1 for the unit A1 from november onwards should be 21.6 since there is rate value &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THanking You&lt;/P&gt;&lt;P&gt;Vinayagam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 09:02:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/peek-with-condition/m-p/906879#M987559</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-21T09:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: peek with condition</title>
      <link>https://community.qlik.com/t5/QlikView/peek-with-condition/m-p/906880#M987560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is what you are looking for?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 09:44:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/peek-with-condition/m-p/906880#M987560</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-07-21T09:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: peek with condition</title>
      <link>https://community.qlik.com/t5/QlikView/peek-with-condition/m-p/906881#M987561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see what you mean.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD UNIT, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MATERIAL, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MonthName(Date#(MONTH, 'MMM YYYY')) as MonthYear, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RATE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Community_173305.xlsx&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(ooxml, embedded labels, table is Sheet1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FinalTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD UNIT,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; MATERIAL,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; MonthYear,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; RATE,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If(Peek('UNIT') = UNIT and Peek('MATERIAL') = MATERIAL &lt;SPAN style="color: #ff0000;"&gt;and&amp;nbsp; Len(RATE) = 0&lt;/SPAN&gt;, ALT(PEEK('NEWRATE'), RATE), RATE) as NEWRATE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Order By UNIT, MATERIAL, MonthYear;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/93468_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 10:07:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/peek-with-condition/m-p/906881#M987561</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-21T10:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: peek with condition</title>
      <link>https://community.qlik.com/t5/QlikView/peek-with-condition/m-p/906882#M987562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/171708"&gt;sunindia&lt;/A&gt;‌ &lt;A href="https://community.qlik.com/qlik-users/57428"&gt;Kush141087&lt;/A&gt;‌ EXCTLY SIR...&amp;nbsp; Thanks a ton &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 11:22:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/peek-with-condition/m-p/906882#M987562</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-21T11:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: peek with condition</title>
      <link>https://community.qlik.com/t5/QlikView/peek-with-condition/m-p/906883#M987563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would ask you to close this thread by marking the correct answer and any helpful answers. Since Kush answered this ahead of me, he deserves to get correct answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 11:24:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/peek-with-condition/m-p/906883#M987563</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-21T11:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: peek with condition</title>
      <link>https://community.qlik.com/t5/QlikView/peek-with-condition/m-p/906884#M987564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/171708"&gt;sunindia&lt;/A&gt;‌ I really like your honesty and appreciate it. Nice to have people like you on community &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 12:07:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/peek-with-condition/m-p/906884#M987564</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-07-21T12:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: peek with condition</title>
      <link>https://community.qlik.com/t5/QlikView/peek-with-condition/m-p/906885#M987565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks brother &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 12:10:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/peek-with-condition/m-p/906885#M987565</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-21T12:10:39Z</dc:date>
    </item>
  </channel>
</rss>

