<?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 comparing strings with date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/comparing-strings-with-date/m-p/1025849#M923255</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;i am trying to compare the string with previous and current month date &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="192"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="64"&gt;recid&lt;/TD&gt;&lt;TD width="64"&gt;date&lt;/TD&gt;&lt;TD width="64"&gt;status&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;1/1/2016&lt;/TD&gt;&lt;TD&gt;active&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;2/1/2016&lt;/TD&gt;&lt;TD&gt;retired&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;1/1/2016&lt;/TD&gt;&lt;TD&gt;active&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;2/1/2016&lt;/TD&gt;&lt;TD&gt;active&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;1/1/2016&lt;/TD&gt;&lt;TD&gt;active&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;2/1/2016&lt;/TD&gt;&lt;TD&gt;removed&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;i am trying to find the count of recid if the previous month status is active and the current month status is retired or removed&lt;/P&gt;&lt;P&gt;i have tried using if condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(if((date=vPM and status='active') and (date=vCM and match(status,'retired','removed')) &lt;/P&gt;&lt;P&gt;,1,0))&lt;/P&gt;&lt;P&gt;where vPM=date(addmonths(max(date),-1),'MM/DD/YYYY') and vCM=date(max(date),'MM/DD/YYYY') &lt;/P&gt;&lt;P&gt;but i am getting sum as 0 please help me to resolve this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;shruthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>shruthibk</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>comparing strings with date</title>
      <link>https://community.qlik.com/t5/QlikView/comparing-strings-with-date/m-p/1025849#M923255</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;i am trying to compare the string with previous and current month date &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="192"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="64"&gt;recid&lt;/TD&gt;&lt;TD width="64"&gt;date&lt;/TD&gt;&lt;TD width="64"&gt;status&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;1/1/2016&lt;/TD&gt;&lt;TD&gt;active&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;2/1/2016&lt;/TD&gt;&lt;TD&gt;retired&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;1/1/2016&lt;/TD&gt;&lt;TD&gt;active&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;2/1/2016&lt;/TD&gt;&lt;TD&gt;active&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;1/1/2016&lt;/TD&gt;&lt;TD&gt;active&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;2/1/2016&lt;/TD&gt;&lt;TD&gt;removed&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;i am trying to find the count of recid if the previous month status is active and the current month status is retired or removed&lt;/P&gt;&lt;P&gt;i have tried using if condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(if((date=vPM and status='active') and (date=vCM and match(status,'retired','removed')) &lt;/P&gt;&lt;P&gt;,1,0))&lt;/P&gt;&lt;P&gt;where vPM=date(addmonths(max(date),-1),'MM/DD/YYYY') and vCM=date(max(date),'MM/DD/YYYY') &lt;/P&gt;&lt;P&gt;but i am getting sum as 0 please help me to resolve this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;shruthi&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/comparing-strings-with-date/m-p/1025849#M923255</guid>
      <dc:creator>shruthibk</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: comparing strings with date</title>
      <link>https://community.qlik.com/t5/QlikView/comparing-strings-with-date/m-p/1025850#M923256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count(&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;{&amp;lt;recid = p({&amp;lt;date = {'$(vPM)'}, status = {'active'}&amp;gt;}) * p(&lt;SPAN style="font-size: 13.3333px;"&gt;{&amp;lt;date = {'$(vCM)'}, status = {'retired','removed'}&amp;gt;}&lt;/SPAN&gt;) &amp;gt;}&lt;/STRONG&gt; DISTINCT recid)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 15:51:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparing-strings-with-date/m-p/1025850#M923256</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-13T15:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: comparing strings with date</title>
      <link>https://community.qlik.com/t5/QlikView/comparing-strings-with-date/m-p/1025851#M923257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you doing this in the script or the front end of the application?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 15:52:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparing-strings-with-date/m-p/1025851#M923257</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-13T15:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: comparing strings with date</title>
      <link>https://community.qlik.com/t5/QlikView/comparing-strings-with-date/m-p/1025852#M923259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And maybe you need to format your variables using&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;"&gt; vPM=date(addmonths(max(date),-1),&lt;STRONG&gt;'M/D/YYYY')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 15:55:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparing-strings-with-date/m-p/1025852#M923259</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-13T15:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: comparing strings with date</title>
      <link>https://community.qlik.com/t5/QlikView/comparing-strings-with-date/m-p/1025853#M923261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi i tried in script as well as front end side both side not working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 06:51:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparing-strings-with-date/m-p/1025853#M923261</guid>
      <dc:creator>shruthibk</dc:creator>
      <dc:date>2016-04-14T06:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: comparing strings with date</title>
      <link>https://community.qlik.com/t5/QlikView/comparing-strings-with-date/m-p/1025854#M923264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is not date format issue&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 06:52:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparing-strings-with-date/m-p/1025854#M923264</guid>
      <dc:creator>shruthibk</dc:creator>
      <dc:date>2016-04-14T06:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: comparing strings with date</title>
      <link>https://community.qlik.com/t5/QlikView/comparing-strings-with-date/m-p/1025855#M923266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i tried this expression this is also giving count 0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 06:54:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparing-strings-with-date/m-p/1025855#M923266</guid>
      <dc:creator>shruthibk</dc:creator>
      <dc:date>2016-04-14T06:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: comparing strings with date</title>
      <link>https://community.qlik.com/t5/QlikView/comparing-strings-with-date/m-p/1025856#M923267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi this is giving the desired count one more requirement how can i count the null values in expression for example&lt;/P&gt;&lt;P&gt;along with retired and removed if the value is null it should count that value as well&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 07:58:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparing-strings-with-date/m-p/1025856#M923267</guid>
      <dc:creator>shruthibk</dc:creator>
      <dc:date>2016-04-14T07:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: comparing strings with date</title>
      <link>https://community.qlik.com/t5/QlikView/comparing-strings-with-date/m-p/1025857#M923268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NULL is not a value and can't be selected. But you can derive the records to include indirectly, e.g. using e() function. Have a look at&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4424"&gt;Excluding values in Set Analysis&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 09:17:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparing-strings-with-date/m-p/1025857#M923268</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-14T09:17:01Z</dc:date>
    </item>
  </channel>
</rss>

