<?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 current date with last date ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-compare-current-date-with-last-date/m-p/322262#M583827</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, i have a problem, i need to compare a especific date with a last date (for example 1/10/2011 with 1/10/2010) and this show the sum of sales,&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;I created&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;a report with&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;these data&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;but&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the chart&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;shows me&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the information of the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;two separate years&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;and I need&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;to display them&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;in the next column.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i attached&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;file with&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the example,&lt;/SPAN&gt; i hop you can help me please &lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Oct 2011 23:04:18 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-10-07T23:04:18Z</dc:date>
    <item>
      <title>how to compare current date with last date ?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-compare-current-date-with-last-date/m-p/322262#M583827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, i have a problem, i need to compare a especific date with a last date (for example 1/10/2011 with 1/10/2010) and this show the sum of sales,&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;I created&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;a report with&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;these data&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;but&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the chart&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;shows me&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the information of the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;two separate years&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;and I need&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;to display them&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;in the next column.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i attached&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;file with&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the example,&lt;/SPAN&gt; i hop you can help me please &lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2011 23:04:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-compare-current-date-with-last-date/m-p/322262#M583827</guid>
      <dc:creator />
      <dc:date>2011-10-07T23:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to compare current date with last date ?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-compare-current-date-with-last-date/m-p/322263#M583828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Beto,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually the main purpose of set analysis is used to compare between (Year, Quarter, Month, Week). So you should remove one dimension called &amp;lt;fecha&amp;gt; in you pivot table.&lt;/P&gt;&lt;P&gt;Try to use one dimension (cliente) and two below expression:&lt;/P&gt;&lt;P&gt; 1. For the current selection Year: SUM({&amp;lt;año={$(=Max(año))}&amp;gt;} ventas)&lt;/P&gt;&lt;P&gt; 2. For last year: SUM({&amp;lt;año={$(=Max(año-1))}&amp;gt;} ventas)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the attached file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sokkorn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Oct 2011 02:27:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-compare-current-date-with-last-date/m-p/322263#M583828</guid>
      <dc:creator>Sokkorn</dc:creator>
      <dc:date>2011-10-08T02:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to compare current date with last date ?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-compare-current-date-with-last-date/m-p/322264#M583829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sokkorn , , i tried to do it before, bu t i need to present the&amp;nbsp; data per date like the next way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;customer, date, sales 2011, sales 2010&lt;/P&gt;&lt;P&gt;NT,10/10/2011,5000,4500&lt;/P&gt;&lt;P&gt;NT,09/10/2011,6000,5500&lt;/P&gt;&lt;P&gt;NT,08/10/2011,7000,6500&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i try to do with function TOTAL&amp;nbsp; sum({1}total &amp;lt;fecha&amp;gt;ventas ) ,but this way show all the dates and it &lt;SPAN class="hps"&gt;does not respect the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;selection, it's possible&amp;nbsp; to add more function (aggr) in this function , i don't know how to do it&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2011 18:57:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-compare-current-date-with-last-date/m-p/322264#M583829</guid>
      <dc:creator />
      <dc:date>2011-10-10T18:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to compare current date with last date ?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-compare-current-date-with-last-date/m-p/322265#M583830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jorge,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe like attached?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed your second dimension to:&lt;/P&gt;&lt;P&gt;=num(Day(fecha),'00')&amp;amp;'/'&amp;amp;num(month(fecha),'00')&amp;amp;'/'&amp;amp;$(v_año)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2011 19:15:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-compare-current-date-with-last-date/m-p/322265#M583830</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-10-10T19:15:01Z</dc:date>
    </item>
  </channel>
</rss>

