<?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 how to compare dates in an application in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-compare-dates-in-an-application/m-p/145882#M24527</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;sridhar24784 wrote:&lt;BR /&gt;Hi,&lt;BR /&gt;&lt;B&gt;=Sum (all if(Date&amp;lt;max(total Date), Sales))&lt;/B&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi thnaks for reply but this will return sum for all dates below the selected date. i want value for the date which is immidiately below the selected vale&lt;/P&gt;&lt;P&gt;Suppose&lt;/P&gt;&lt;P&gt;Dtae Value&lt;/P&gt;&lt;P&gt;5/09/1998 155&lt;/P&gt;&lt;P&gt;6/09/1998 26&lt;/P&gt;&lt;P&gt;8/09/1998 123&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if user select 8/09/1998 then is shall get value for 6/09/1998 which is immediately less to 8/09/1998&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please have a lookk......thanks&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Jun 2009 17:55:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-06-04T17:55:01Z</dc:date>
    <item>
      <title>how to compare dates in an application</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-compare-dates-in-an-application/m-p/145879#M24524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I Have a column with date type data. User will select a date from list box. how can i select the date immediately less than the value selected by the user. so that i can fetch other data corresponding to the date immediately less than the date selected from list box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 16:17:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-compare-dates-in-an-application/m-p/145879#M24524</guid>
      <dc:creator />
      <dc:date>2009-06-04T16:17:04Z</dc:date>
    </item>
    <item>
      <title>how to compare dates in an application</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-compare-dates-in-an-application/m-p/145880#M24525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I`m not clear about your requirement.&lt;/P&gt;&lt;P&gt;But if you want to select all the date below the selected date, then go for below expression.&lt;/P&gt;&lt;P style="font-weight: bold"&gt;=Sum (all if(Date&amp;lt;max(total Date), Sales))&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope this should help you.&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Cheers &lt;IMG alt="Yes" src="http://community.qlik.com/emoticons/emotion-21.gif" /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;- Sridhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 16:47:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-compare-dates-in-an-application/m-p/145880#M24525</guid>
      <dc:creator />
      <dc:date>2009-06-04T16:47:53Z</dc:date>
    </item>
    <item>
      <title>how to compare dates in an application</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-compare-dates-in-an-application/m-p/145881#M24526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No.. No.. There are many experts in this forum... &lt;IMG alt="Zip it!" src="http://community.qlik.com/emoticons/emotion-16.gif" /&gt;&lt;/P&gt;&lt;P&gt;I just started my life in qlikview &lt;IMG alt="Paradise" src="http://community.qlik.com/emoticons/emotion-59.gif" /&gt; &lt;IMG alt="Travel" src="http://community.qlik.com/emoticons/emotion-58.gif" /&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;- Sridhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 17:18:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-compare-dates-in-an-application/m-p/145881#M24526</guid>
      <dc:creator />
      <dc:date>2009-06-04T17:18:36Z</dc:date>
    </item>
    <item>
      <title>how to compare dates in an application</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-compare-dates-in-an-application/m-p/145882#M24527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;sridhar24784 wrote:&lt;BR /&gt;Hi,&lt;BR /&gt;&lt;B&gt;=Sum (all if(Date&amp;lt;max(total Date), Sales))&lt;/B&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi thnaks for reply but this will return sum for all dates below the selected date. i want value for the date which is immidiately below the selected vale&lt;/P&gt;&lt;P&gt;Suppose&lt;/P&gt;&lt;P&gt;Dtae Value&lt;/P&gt;&lt;P&gt;5/09/1998 155&lt;/P&gt;&lt;P&gt;6/09/1998 26&lt;/P&gt;&lt;P&gt;8/09/1998 123&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if user select 8/09/1998 then is shall get value for 6/09/1998 which is immediately less to 8/09/1998&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please have a lookk......thanks&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 17:55:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-compare-dates-in-an-application/m-p/145882#M24527</guid>
      <dc:creator />
      <dc:date>2009-06-04T17:55:01Z</dc:date>
    </item>
    <item>
      <title>how to compare dates in an application</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-compare-dates-in-an-application/m-p/145883#M24528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dude,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the attachment.&lt;/P&gt;&lt;P&gt;You need to go for this below expression.&lt;/P&gt;&lt;P style="font-weight: bold"&gt;=date(max(all aggr(sum(all&amp;lt;Date&amp;gt; if(Date&amp;lt;max(total Date), Date)), Date)),'DD-MM-YYYY')&lt;/P&gt;&lt;P&gt;Cheers &lt;IMG alt="Beer" src="http://community.qlik.com/emoticons/emotion-22.gif" /&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;- Sridhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 18:43:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-compare-dates-in-an-application/m-p/145883#M24528</guid>
      <dc:creator />
      <dc:date>2009-06-04T18:43:48Z</dc:date>
    </item>
    <item>
      <title>how to compare dates in an application</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-compare-dates-in-an-application/m-p/145884#M24529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Can u attch ur application here. Then it is easy for solve the problem..........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Sathish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 18:52:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-compare-dates-in-an-application/m-p/145884#M24529</guid>
      <dc:creator>sathishkumar_go</dc:creator>
      <dc:date>2009-06-04T18:52:32Z</dc:date>
    </item>
    <item>
      <title>how to compare dates in an application</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-compare-dates-in-an-application/m-p/145885#M24530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;One more additional info.&lt;/P&gt;&lt;P&gt;if you wan to select next second max value from the selected date you have to use this following code and by increasing the number in max parameter you can find the next to next max value respectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;=date(max(all aggr(sum(all&amp;lt;Date&amp;gt; if(Date&amp;lt;max(total Date), Date)), Date),&lt;I&gt;2&lt;/I&gt;),'DD-MM-YYYY')&lt;/P&gt;&lt;P&gt;&lt;B&gt;=date(max(all aggr(sum(all&amp;lt;Date&amp;gt; if(Date&amp;lt;max(total Date), Date)), Date),&lt;/B&gt;&lt;B&gt;&lt;I&gt;3&lt;/I&gt;),'DD-MM-YYYY')&lt;/B&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;=date(max(all aggr(sum(all&amp;lt;Date&amp;gt; if(Date&amp;lt;max(total Date), Date)), Date),&lt;I&gt;4&lt;/I&gt;),'DD-MM-YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers, Happy Selecting &lt;IMG alt="Yes" src="http://community.qlik.com/emoticons/emotion-21.gif" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;- Sridhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 18:58:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-compare-dates-in-an-application/m-p/145885#M24530</guid>
      <dc:creator />
      <dc:date>2009-06-04T18:58:00Z</dc:date>
    </item>
  </channel>
</rss>

