<?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: Not able to check the condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Not-able-to-check-the-condition/m-p/752578#M662154</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When using dates in comparisons it's often wise to use only the numeric value and not mess around with the different format string representations of the dates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Feb 2015 14:58:50 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2015-02-05T14:58:50Z</dc:date>
    <item>
      <title>Not able to check the condition</title>
      <link>https://community.qlik.com/t5/QlikView/Not-able-to-check-the-condition/m-p/752574#M662150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have declared a variable like this&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vAccountingPeriod=Date#(ADDMONTHS(YEARSTART(Now()),-12),'YYYYMM');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which is equal to 201401.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and loaded the data like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * from table&lt;/P&gt;&lt;P&gt;where Date#([Acct-PrdOO],'YYYYMM')&amp;gt;Date#($(vAccountingPeriod),'YYYYMM'); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I am getting all the data and&amp;nbsp; the check condition is failing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know the error in the code.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 14:35:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-able-to-check-the-condition/m-p/752574#M662150</guid>
      <dc:creator />
      <dc:date>2015-02-05T14:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to check the condition</title>
      <link>https://community.qlik.com/t5/QlikView/Not-able-to-check-the-condition/m-p/752575#M662151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you have already set the format in the variable, you should be able to just use&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;where Date#([Acct-PrdOO],'YYYYMM')&amp;gt;'$(vAccountingPeriod)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope that helps&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 14:39:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-able-to-check-the-condition/m-p/752575#M662151</guid>
      <dc:creator />
      <dc:date>2015-02-05T14:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to check the condition</title>
      <link>https://community.qlik.com/t5/QlikView/Not-able-to-check-the-condition/m-p/752576#M662152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Try:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;LET vAccountingPeriod= floor(ADDMONTHS(YEARSTART(Now()),-12));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load * from table&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;where floor(Date#([Acct-PrdOO],'YYYYMM')) &amp;gt; $(vAccountingPeriod);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 14:41:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-able-to-check-the-condition/m-p/752576#M662152</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-02-05T14:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to check the condition</title>
      <link>https://community.qlik.com/t5/QlikView/Not-able-to-check-the-condition/m-p/752577#M662153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its working!!! Could I know the reason please&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 14:49:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-able-to-check-the-condition/m-p/752577#M662153</guid>
      <dc:creator />
      <dc:date>2015-02-05T14:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to check the condition</title>
      <link>https://community.qlik.com/t5/QlikView/Not-able-to-check-the-condition/m-p/752578#M662154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When using dates in comparisons it's often wise to use only the numeric value and not mess around with the different format string representations of the dates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 14:58:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-able-to-check-the-condition/m-p/752578#M662154</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-02-05T14:58:50Z</dc:date>
    </item>
  </channel>
</rss>

