<?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 Above function in a line chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Above-function-in-a-line-chart/m-p/900693#M313396</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am attempting to get the % change from one month to the next.&amp;nbsp; I can do this in a straight table using the above function but when I translate this to a line chart, it does not work because the time dimension now occurs and is sorted before the other dimension.&amp;nbsp; I have attached an incredibly small example that will illustrate what I am attempting.&amp;nbsp; I appreciate any and all feedback!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 May 2015 19:22:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-05-20T19:22:48Z</dc:date>
    <item>
      <title>Above function in a line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Above-function-in-a-line-chart/m-p/900693#M313396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am attempting to get the % change from one month to the next.&amp;nbsp; I can do this in a straight table using the above function but when I translate this to a line chart, it does not work because the time dimension now occurs and is sorted before the other dimension.&amp;nbsp; I have attached an incredibly small example that will illustrate what I am attempting.&amp;nbsp; I appreciate any and all feedback!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2015 19:22:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Above-function-in-a-line-chart/m-p/900693#M313396</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-20T19:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Above function in a line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Above-function-in-a-line-chart/m-p/900694#M313397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;its annoying but i think you need a data model solution to have Qlik do that properly. I think i've hit this before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I modified your script to store prior period values in a new field called [Quantity-prior period] . Once you do that the expression is dead easy:&amp;nbsp; sum(Quantity) / sum([Quantity-prior period]).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;load * inline [&lt;/P&gt;&lt;P&gt;Item, Year-Month, Quantity&lt;/P&gt;&lt;P&gt;Apple, 2015-1, 1000&lt;/P&gt;&lt;P&gt;Apple, 2015-2, 1200&lt;/P&gt;&lt;P&gt;Apple, 2015-3, 1400&lt;/P&gt;&lt;P&gt;Banana, 2015-1, 1000&lt;/P&gt;&lt;P&gt;Banana, 2015-2, 1000&lt;/P&gt;&lt;P&gt;Banana, 2015-3, 1000&lt;/P&gt;&lt;P&gt;Peach, 2015-1, 1000&lt;/P&gt;&lt;P&gt;Peach, 2015-2, 800&lt;/P&gt;&lt;P&gt;Peach, 2015-3, 600];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; AutoNumber(Item&amp;amp;[Year-Month],'ItemMonthKey') as ItemMonthKey&lt;/P&gt;&lt;P&gt;Resident Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join (Data)&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Quantity-prior period],&lt;/P&gt;&lt;P&gt;&amp;nbsp; AutoNumber(Item&amp;amp;[Year-Month],'ItemMonthKey') as ItemMonthKey;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; Item,&lt;/P&gt;&lt;P&gt;&amp;nbsp; date(AddMonths( date#([Year-Month],'YYYY-M'),1),'YYYY-M') as [Year-Month],&lt;/P&gt;&lt;P&gt;&amp;nbsp; Quantity as [Quantity-prior period]&lt;/P&gt;&lt;P&gt;Resident Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table Temp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2015 20:08:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Above-function-in-a-line-chart/m-p/900694#M313397</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2015-05-20T20:08:43Z</dc:date>
    </item>
  </channel>
</rss>

