<?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 Table with data comparation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Table-with-data-comparation/m-p/213904#M67532</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sparur. That's the solution, but.... How can I do to compare same month on diferent years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Apr 2010 14:49:15 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-04-14T14:49:15Z</dc:date>
    <item>
      <title>Table with data comparation</title>
      <link>https://community.qlik.com/t5/QlikView/Table-with-data-comparation/m-p/213900#M67528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all I have to create a table with comparation between months and I have no Idea how to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table with a structure like&lt;/P&gt;&lt;P&gt;Date Sales&lt;/P&gt;&lt;P&gt;01/01/2009 20&lt;/P&gt;&lt;P&gt;02/01/2009 40&lt;/P&gt;&lt;P&gt;02/02/2009 50&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a system variable with a date and a want to do.&lt;/P&gt;&lt;P&gt;From the year of that variable obtain the next table.&lt;/P&gt;&lt;P&gt;Year&lt;/P&gt;&lt;P&gt;Mont of the data Sales&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;01/01/2009 10&lt;/P&gt;&lt;P&gt;01/02/2009 2&lt;/P&gt;&lt;P&gt;01/02/2009 3&lt;/P&gt;&lt;P&gt;01/03/2009 5&lt;/P&gt;&lt;P&gt;2009&lt;/P&gt;&lt;P&gt;January&lt;/P&gt;&lt;P&gt;February -50%&lt;/P&gt;&lt;P&gt;March 0 %&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in every month diference with the previous in %.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me with the code of the expressions / dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 13:50:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-with-data-comparation/m-p/213900#M67528</guid>
      <dc:creator />
      <dc:date>2010-04-14T13:50:28Z</dc:date>
    </item>
    <item>
      <title>Table with data comparation</title>
      <link>https://community.qlik.com/t5/QlikView/Table-with-data-comparation/m-p/213901#M67529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If i Understand your question, that this expression can help you:&lt;/P&gt;&lt;P&gt;sum(Sales) / above(sum(Sales))&lt;/P&gt;&lt;P&gt;dimension by Month&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 14:13:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-with-data-comparation/m-p/213901#M67529</guid>
      <dc:creator>sparur</dc:creator>
      <dc:date>2010-04-14T14:13:17Z</dc:date>
    </item>
    <item>
      <title>Table with data comparation</title>
      <link>https://community.qlik.com/t5/QlikView/Table-with-data-comparation/m-p/213902#M67530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;test1:&lt;BR /&gt;LOAD * INLINE&lt;BR /&gt;[&lt;BR /&gt;yearmonth,sales&lt;BR /&gt;201001,10&lt;BR /&gt;201002,3&lt;BR /&gt;201002,2&lt;BR /&gt;201003,5&lt;BR /&gt;];&lt;BR /&gt;test2:&lt;BR /&gt;LOAD yearmonth,&lt;BR /&gt; sum(sales) as msales&lt;BR /&gt;RESIDENT test1&lt;BR /&gt;GROUP BY yearmonth&lt;BR /&gt;ORDER BY yearmonth;&lt;BR /&gt;test3:&lt;BR /&gt;LOAD yearmonth,&lt;BR /&gt; msales,&lt;BR /&gt; (msales-numsum(peek(msales)))/numsum(peek(msales)) as percentage&lt;BR /&gt;RESIDENT test2;&lt;BR /&gt;DROP TABLE test2;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Justinas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 14:19:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-with-data-comparation/m-p/213902#M67530</guid>
      <dc:creator>justinasp</dc:creator>
      <dc:date>2010-04-14T14:19:11Z</dc:date>
    </item>
    <item>
      <title>Table with data comparation</title>
      <link>https://community.qlik.com/t5/QlikView/Table-with-data-comparation/m-p/213903#M67531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that's the answer.&lt;/P&gt;&lt;P&gt;But only one more thing...&lt;/P&gt;&lt;P&gt;How to compare the same month on diferent years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 14:35:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-with-data-comparation/m-p/213903#M67531</guid>
      <dc:creator />
      <dc:date>2010-04-14T14:35:49Z</dc:date>
    </item>
    <item>
      <title>Table with data comparation</title>
      <link>https://community.qlik.com/t5/QlikView/Table-with-data-comparation/m-p/213904#M67532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sparur. That's the solution, but.... How can I do to compare same month on diferent years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 14:49:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-with-data-comparation/m-p/213904#M67532</guid>
      <dc:creator />
      <dc:date>2010-04-14T14:49:15Z</dc:date>
    </item>
    <item>
      <title>Table with data comparation</title>
      <link>https://community.qlik.com/t5/QlikView/Table-with-data-comparation/m-p/213905#M67533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jordi,&lt;/P&gt;&lt;P&gt;Given that Year is a dimension showed in a column in your table, and "Sales" the expression you use to calculate monthly sums, and years ordered higher to lower, you can do&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;([Sales] - after([Sales])) / after([Sales])&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;After() function will take next column's value. &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 15:50:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-with-data-comparation/m-p/213905#M67533</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-04-14T15:50:42Z</dc:date>
    </item>
  </channel>
</rss>

