<?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 Date comparision with variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-comparision-with-variable/m-p/147815#M26185</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found Date comparizon quite tricky, because of the dual nature of Dates. I'm usually casting them to numerics, just to make sure that I'm comparing the same values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if( num(Date1) = num(Date2) ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 27 Jun 2009 01:53:18 GMT</pubDate>
    <dc:creator>Oleg_Troyansky</dc:creator>
    <dc:date>2009-06-27T01:53:18Z</dc:date>
    <item>
      <title>Date comparision with variable</title>
      <link>https://community.qlik.com/t5/QlikView/Date-comparision-with-variable/m-p/147811#M26181</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;I defined variable as ANALYSIS_DATE type date; I have field as TDate; I want to sum AMOUNT which is below the ANALYSIS_DATE;&lt;/P&gt;&lt;P&gt;My expression: =sum(all (if(TDate &amp;lt; max(ANALYSIS_DATE), AMOUNT)) is not working; please guide me.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Eshack&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2009 15:06:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-comparision-with-variable/m-p/147811#M26181</guid>
      <dc:creator />
      <dc:date>2009-06-26T15:06:17Z</dc:date>
    </item>
    <item>
      <title>Date comparision with variable</title>
      <link>https://community.qlik.com/t5/QlikView/Date-comparision-with-variable/m-p/147812#M26182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you try this&lt;/P&gt;&lt;P&gt;=If(TDate &amp;lt; max(Analysis_date), sum(Amount))&lt;/P&gt;&lt;P&gt;-Raghu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2009 16:06:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-comparision-with-variable/m-p/147812#M26182</guid>
      <dc:creator />
      <dc:date>2009-06-26T16:06:57Z</dc:date>
    </item>
    <item>
      <title>Date comparision with variable</title>
      <link>https://community.qlik.com/t5/QlikView/Date-comparision-with-variable/m-p/147813#M26183</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 out this below expression&lt;/P&gt;&lt;P&gt;=sum(all (if(TDate &amp;lt; max(total ANALYSIS_DATE), AMOUNT))&lt;/P&gt;&lt;P style="font-weight: bold"&gt;- Sridhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2009 16:11:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-comparision-with-variable/m-p/147813#M26183</guid>
      <dc:creator />
      <dc:date>2009-06-26T16:11:16Z</dc:date>
    </item>
    <item>
      <title>Date comparision with variable</title>
      <link>https://community.qlik.com/t5/QlikView/Date-comparision-with-variable/m-p/147814#M26184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Eshack,&lt;BR /&gt;If the ANALYSIS_DATE is a variable, I don't understand the need of max(). So, this should be enough&lt;BR /&gt;=sum(all (if(TDate &amp;lt; ANALYSIS_DATE, AMOUNT))&lt;BR /&gt;Make sure that the format of Date and ANALYSIS_DATE are both date or number.&lt;BR /&gt;(I don't see the need of "all" qualifier in this case, but hope you know what you're doing.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2009 23:12:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-comparision-with-variable/m-p/147814#M26184</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-26T23:12:35Z</dc:date>
    </item>
    <item>
      <title>Date comparision with variable</title>
      <link>https://community.qlik.com/t5/QlikView/Date-comparision-with-variable/m-p/147815#M26185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found Date comparizon quite tricky, because of the dual nature of Dates. I'm usually casting them to numerics, just to make sure that I'm comparing the same values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if( num(Date1) = num(Date2) ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Jun 2009 01:53:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-comparision-with-variable/m-p/147815#M26185</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2009-06-27T01:53:18Z</dc:date>
    </item>
  </channel>
</rss>

