<?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: Showing Values on Condition in QlikView in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Showing-Values-on-Condition-in-QlikView/m-p/1444916#M797362</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think there is one more requirement, is that Value need to 0 if Last 5 digit of old doc no and last 5 digit of new doc no is matches.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Dec 2017 12:28:43 GMT</pubDate>
    <dc:creator>big_dreams</dc:creator>
    <dc:date>2017-12-07T12:28:43Z</dc:date>
    <item>
      <title>Showing Values on Condition in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Showing-Values-on-Condition-in-QlikView/m-p/1444913#M797359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to do something in Qlikview. It goes as this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tab:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;code, supplier, docno, value&lt;/P&gt;&lt;P&gt;BQ1234, v1, 1200034215, 1000&lt;/P&gt;&lt;P&gt;BQ1234, v1, 1200041235, 500&lt;/P&gt;&lt;P&gt;BQ1234, v1, 2210034215, 1000&lt;/P&gt;&lt;P&gt;BQ1234, v2, 1200045612, 500&lt;/P&gt;&lt;P&gt;BQ1234, v2, 2210045612, 500&lt;/P&gt;&lt;P&gt;BQ1234, v3, 2210045211, 300&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Docno starting from '12' are old ones and those starting from '22' are the new ones. Now what i want is that if a the last 5 digits of a docno is present in both new and old docno, then the value in front of old one should become zero and the new one should show as it is in the final result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For now what i am doing is:&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Right(docno,5) as docno1,&lt;/P&gt;&lt;P&gt;value as value1&lt;/P&gt;&lt;P&gt;Resident Tab&lt;/P&gt;&lt;P&gt;where Left(docno,2)='22';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vfieldcount=FieldValueCount('docno1');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For i=0 to $(vfieldcount)-1&lt;/P&gt;&lt;P&gt;Let vFieldvalue=peek('docno1',$(i),'Table1');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;code,&lt;/P&gt;&lt;P&gt;supplier,&lt;/P&gt;&lt;P&gt;docno as docnoold,&lt;/P&gt;&lt;P&gt;//if(right(docno,5)=$(vFieldvalue),docno,docno) as docnoold,&lt;/P&gt;&lt;P&gt;if(right(docno,5)=$(vFieldvalue),0,value) as valuenew&lt;/P&gt;&lt;P&gt;Resident Tab&lt;/P&gt;&lt;P&gt;where Left(docno,2)='12';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT i;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;code,&lt;/P&gt;&lt;P&gt;supplier,&lt;/P&gt;&lt;P&gt;docno as docnoold,&lt;/P&gt;&lt;P&gt;value as valuenew&lt;/P&gt;&lt;P&gt;Resident Tab&lt;/P&gt;&lt;P&gt;where Left(docno,2)&amp;lt;&amp;gt;'12';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table Table1;&lt;/P&gt;&lt;P&gt;Drop table Tab; &lt;/P&gt;&lt;P&gt;EXIT Script;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Showing-Values-on-Condition-in-QlikView/m-p/1444913#M797359</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Showing Values on Condition in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Showing-Values-on-Condition-in-QlikView/m-p/1444914#M797360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&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 *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Left(docno, 2) as Key1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * INLINE [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; code, supplier, docno, value&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BQ1234, v1, 1200034215, 1000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BQ1234, v1, 1200041235, 500&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BQ1234, v1, 2210034215, 1000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BQ1234, v2, 1200045612, 500&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BQ1234, v2, 2210045612, 500&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BQ1234, v3, 2210045211, 300&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&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 *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Right(docno, 5) as Key2&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;Where Key1 = 22;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Concatenate (FinalTable)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Right(docno, 5) as Key2&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;Where Key1 = 12 and not Exists(Key2, Right(docno, 5));&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 12:14:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Showing-Values-on-Condition-in-QlikView/m-p/1444914#M797360</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-07T12:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: Showing Values on Condition in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Showing-Values-on-Condition-in-QlikView/m-p/1444915#M797361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tab:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;code, supplier, docno, value&lt;/P&gt;&lt;P&gt;BQ1234, v1, 1200034215, 1000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BQ1234, v1, 1200041235, 500&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BQ1234, v1, 2210034215, 1000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BQ1234, v2, 1200045612, 500&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BQ1234, v2, 2210045612, 500&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BQ1234, v3, 2210045211, 300&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;temp:&lt;/P&gt;&lt;P&gt;Load docno as new_doc, &lt;/P&gt;&lt;P&gt;right(docno,5) as testNewDoc &lt;/P&gt;&lt;P&gt;Resident Tab&lt;/P&gt;&lt;P&gt;where left(docno,2)='22';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join(Tab)&lt;/P&gt;&lt;P&gt;temp1:&lt;/P&gt;&lt;P&gt;Load docno as docno,&lt;/P&gt;&lt;P&gt;right(docno,5) as testOldDoc ,&lt;/P&gt;&lt;P&gt;'1' as flag&lt;/P&gt;&lt;P&gt;Resident Tab&lt;/P&gt;&lt;P&gt;where left(docno,2)='12'&lt;/P&gt;&lt;P&gt;and Exists(testNewDoc,right(docno,5));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;Final:&lt;/P&gt;&lt;P&gt;Load *,if(flag=1,0,value) as new_value Resident Tab;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table Tab;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 12:23:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Showing-Values-on-Condition-in-QlikView/m-p/1444915#M797361</guid>
      <dc:creator>big_dreams</dc:creator>
      <dc:date>2017-12-07T12:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Showing Values on Condition in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Showing-Values-on-Condition-in-QlikView/m-p/1444916#M797362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think there is one more requirement, is that Value need to 0 if Last 5 digit of old doc no and last 5 digit of new doc no is matches.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 12:28:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Showing-Values-on-Condition-in-QlikView/m-p/1444916#M797362</guid>
      <dc:creator>big_dreams</dc:creator>
      <dc:date>2017-12-07T12:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Showing Values on Condition in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Showing-Values-on-Condition-in-QlikView/m-p/1444917#M797363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This helps but i want the rows with zero value too i.e. i want the remaining two docno which you have excluded with their value as zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 12:45:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Showing-Values-on-Condition-in-QlikView/m-p/1444917#M797363</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-07T12:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Showing Values on Condition in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Showing-Values-on-Condition-in-QlikView/m-p/1444918#M797364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here you go&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 *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Left(docno, 2) as Key1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * INLINE [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; code, supplier, docno, value&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BQ1234, v1, 1200034215, 1000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BQ1234, v1, 1200041235, 500&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BQ1234, v1, 2210034215, 1000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BQ1234, v2, 1200045612, 500&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BQ1234, v2, 2210045612, 500&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BQ1234, v3, 2210045211, 300&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&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 *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Right(docno, 5) as Key2&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;Where Key1 = 22;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Concatenate (FinalTable)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Key1,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;code,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;supplier,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;docno,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(not Exists(Key2, Right(docno, 5)), value, 0) as value,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Right(docno, 5) as Key2&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;Where Key1 = 12;&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 12:47:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Showing-Values-on-Condition-in-QlikView/m-p/1444918#M797364</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-07T12:47:29Z</dc:date>
    </item>
  </channel>
</rss>

