<?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: How to Check if value exists with date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-Check-if-value-exists-with-date/m-p/1252019#M624261</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Number,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Exist(Number), 'We've seen this number before', 'Never seen it before') as DidThisNumberExistAlready,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...other fields&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....source data....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Dec 2016 09:38:31 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2016-12-13T09:38:31Z</dc:date>
    <item>
      <title>How to Check if value exists with date</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Check-if-value-exists-with-date/m-p/1252014#M624255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to find if Current week "Number" exist in pervious week "Number".&lt;/P&gt;&lt;P&gt;I try to use Exists &amp;amp; match but no use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dat:&lt;/P&gt;&lt;P&gt;LOAD [Date],&lt;/P&gt;&lt;P&gt; [Number],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Match(if([Date]&amp;gt;Today()-6,[Number]),if([Date]&amp;lt;=Today()-6,[Number])) as "Repeated"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; FROM [lib://Dat.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet2);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 07:55:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Check-if-value-exists-with-date/m-p/1252014#M624255</guid>
      <dc:creator>DipeshVadgama</dc:creator>
      <dc:date>2016-12-13T07:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to Check if value exists with date</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Check-if-value-exists-with-date/m-p/1252015#M624256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The previous loaded records could you check with &lt;A href="https://community.qlik.com/docs/DOC-9314"&gt;Peek() or Previous() ?&lt;/A&gt; maybe in this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;if(Number = previous(Number), 'then', 'else') as Check&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 07:59:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Check-if-value-exists-with-date/m-p/1252015#M624256</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-12-13T07:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to Check if value exists with date</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Check-if-value-exists-with-date/m-p/1252016#M624257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Need to understand the scenario here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what if the "Number" exist in previous week and also the week before what then?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What are you trying to achieve with this flag?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 09:21:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Check-if-value-exists-with-date/m-p/1252016#M624257</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2016-12-13T09:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to Check if value exists with date</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Check-if-value-exists-with-date/m-p/1252017#M624259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vineeth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I trying to find weather &lt;STRONG&gt;current week numbers&lt;/STRONG&gt; exist in past or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 09:34:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Check-if-value-exists-with-date/m-p/1252017#M624259</guid>
      <dc:creator>DipeshVadgama</dc:creator>
      <dc:date>2016-12-13T09:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to Check if value exists with date</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Check-if-value-exists-with-date/m-p/1252018#M624260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you want to see anywhere in the past and not specifically a set period in the past then use&amp;nbsp; Autonumber()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RepeatCount:&lt;/P&gt;&lt;P&gt;LOAD Date, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Number,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;AutoNumber(Number&amp;amp;Date,Number) as RepeatedCount&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;F&gt;&lt;/F&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet2);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Number that has RepeatedCount &amp;gt; 1 is a repeat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 09:36:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Check-if-value-exists-with-date/m-p/1252018#M624260</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2016-12-13T09:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to Check if value exists with date</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Check-if-value-exists-with-date/m-p/1252019#M624261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Number,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Exist(Number), 'We've seen this number before', 'Never seen it before') as DidThisNumberExistAlready,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...other fields&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....source data....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 09:38:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Check-if-value-exists-with-date/m-p/1252019#M624261</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-12-13T09:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to Check if value exists with date</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Check-if-value-exists-with-date/m-p/1252020#M624262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I hope this attachment will help.&lt;/P&gt;&lt;P&gt;Same I am trying to do it in Qlik Sense editor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Applied below rules, but not exact results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if([Date]&amp;gt;Today()-6,if(Exists([Number]), 'We have seen this number before', 'Never seen it before')) as Flag1,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if(match(if([Date]&amp;gt;Today()-6,[Number]),if([Date]&amp;lt;&amp;gt;Today()-6,[Number]))&amp;gt;0,'y','n') as Flag2,&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(([Date]&amp;gt;Today()-6),if(match([Number],(if([Date]&amp;lt;=Today()-6,[Number])))&amp;gt;0,'y','n'),'No') As Flag3,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;AutoNumber(Number&amp;amp;Date,Number) as Flag4&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 11:32:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Check-if-value-exists-with-date/m-p/1252020#M624262</guid>
      <dc:creator>DipeshVadgama</dc:creator>
      <dc:date>2016-12-13T11:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to Check if value exists with date</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Check-if-value-exists-with-date/m-p/1252021#M624263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dipesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Hope this helps :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Post_1:&lt;BR /&gt;LOAD Distinct&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date as post_date, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Number,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '1' as junk&lt;BR /&gt;FROM&lt;BR /&gt;&lt;C&gt;&lt;BR /&gt;(ooxml, embedded labels, table is Sheet2);&lt;/C&gt;&lt;/P&gt;&lt;P&gt;Post:&lt;BR /&gt;LOAD post_date,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Number,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Number=Peek(Number),'Exist','Non-Exist') as Check&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident Post_1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Order By Number;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;DROP Field 'junk' From 'Post_1';&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;DROP Table Post_1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nitin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 11:47:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Check-if-value-exists-with-date/m-p/1252021#M624263</guid>
      <dc:creator>nitin_01</dc:creator>
      <dc:date>2016-12-13T11:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to Check if value exists with date</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Check-if-value-exists-with-date/m-p/1252022#M624264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;small change here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;Post:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;LOAD post_date,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Number,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Number=Peek(Number),'Exist','Non-Exist') as Check&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident Post_1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Order By Number,&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;post_date&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 12:04:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Check-if-value-exists-with-date/m-p/1252022#M624264</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2016-12-13T12:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to Check if value exists with date</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Check-if-value-exists-with-date/m-p/1252023#M624265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TRY&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;RepeatCount:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD Date,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Number,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;if(AutoNumber(Number&amp;amp;Date,Number) &amp;gt; 1,'REPEAT','NEW') as Flag4&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;F&gt;&lt;/F&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(ooxml, embedded labels, table is Sheet2);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 12:07:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Check-if-value-exists-with-date/m-p/1252023#M624265</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2016-12-13T12:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to Check if value exists with date</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Check-if-value-exists-with-date/m-p/1252024#M624266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your right Vineeth, I missed it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nitin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 12:11:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Check-if-value-exists-with-date/m-p/1252024#M624266</guid>
      <dc:creator>nitin_01</dc:creator>
      <dc:date>2016-12-13T12:11:09Z</dc:date>
    </item>
  </channel>
</rss>

