<?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: Re: Compare dates inside if satement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Compare-dates-inside-if-satement/m-p/734933#M1084804</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It doesn't work , pls see attached qvw&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jun 2014 11:12:39 GMT</pubDate>
    <dc:creator>anuradhaa</dc:creator>
    <dc:date>2014-06-24T11:12:39Z</dc:date>
    <item>
      <title>Compare dates inside if satement</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-dates-inside-if-satement/m-p/734931#M1084802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have data and i need to apply different values based on date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the date format as '2014-06-07 17:02' i have used&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dual(Month(DATE_TIME) &amp;amp; '-' &amp;amp; Date(DATE_TIME, 'YY'), Num(Year(DATE_TIME)) &amp;amp; Num(Month(DATE_TIME), '00')) AS MonthYear, &lt;/P&gt;&lt;P&gt;to get monthyear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then i need to apply one value till 'MAY-14' and another value after 'MAY-14'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have used &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if((MonthYear &amp;lt; 'May-14' ), 'true' , 'yyy')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then for if Monthyear = 'JUNE-14 ' it display 'true' and may it show 'yyy'.&lt;/P&gt;&lt;P&gt;This is wrong. because 'JUNE-14' &amp;gt; May-14&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help me to solve this problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 10:24:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-dates-inside-if-satement/m-p/734931#M1084802</guid>
      <dc:creator>anuradhaa</dc:creator>
      <dc:date>2014-06-24T10:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Compare dates inside if satement</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-dates-inside-if-satement/m-p/734932#M1084803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're comparing strings. A word starting with a J is considered smaller than a word starting with an M. You need to compare numeric values instead. You can do that by creating dates from your strings.&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;"&gt;=if((date#(MonthYear,'MMM-YY') &amp;lt; date#('May-14','MMM-YY'), 'true' , 'yyy')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 10:29:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-dates-inside-if-satement/m-p/734932#M1084803</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-06-24T10:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Compare dates inside if satement</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-dates-inside-if-satement/m-p/734933#M1084804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It doesn't work , pls see attached qvw&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 11:12:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-dates-inside-if-satement/m-p/734933#M1084804</guid>
      <dc:creator>anuradhaa</dc:creator>
      <dc:date>2014-06-24T11:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Compare dates inside if satement</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-dates-inside-if-satement/m-p/734934#M1084808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;look at the attached application.&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;ASHFAQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 11:16:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-dates-inside-if-satement/m-p/734934#M1084808</guid>
      <dc:creator>ashfaq_haseeb</dc:creator>
      <dc:date>2014-06-24T11:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Compare dates inside if satement</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-dates-inside-if-satement/m-p/734935#M1084809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;=if(Date#(MonthYear,'MMM-YY') &amp;gt; date#('May-14','MMM-YY'), 'true' , 'yyy')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 11:25:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-dates-inside-if-satement/m-p/734935#M1084809</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2014-06-24T11:25:21Z</dc:date>
    </item>
  </channel>
</rss>

