<?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 Re: Previous function in expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Previous-function-in-expression/m-p/523489#M195604</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Have a look at the application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Nov 2013 09:45:12 GMT</pubDate>
    <dc:creator>kaushiknsolanki</dc:creator>
    <dc:date>2013-11-14T09:45:12Z</dc:date>
    <item>
      <title>Previous function in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-function-in-expression/m-p/523487#M195602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to come up with a report that is showing change-% by material type compared to previous period with the expression in pivot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result at the moment can be seen in attachment. I am using there rangesum above function. In the attached picture it works like it should, but once I change the period into horizontal axis it doesn't work anymore. My script is in that case returning the result from the row above which is for different material type. How should I modife the script that it would look for previous result from left instead of above (from the previous period)? Or what would be the better solution to return the result for the same material from the previous period assume in that way this might work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using at the moment following script in my previous column&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;rangesum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;above&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MonthEndValue&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),1,1))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Janne&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 09:29:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-function-in-expression/m-p/523487#M195602</guid>
      <dc:creator />
      <dc:date>2013-11-14T09:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Previous function in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-function-in-expression/m-p/523488#M195603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;For the columns, use BEFORE() function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to make lots of calculation vs Y-1, previous period, perhaps you will need to modify your data model.&lt;/P&gt;&lt;P&gt;See a doc I have written a few weeks ago: &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-4821"&gt;http://community.qlik.com/docs/DOC-4821&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 09:36:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-function-in-expression/m-p/523488#M195603</guid>
      <dc:creator />
      <dc:date>2013-11-14T09:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: Previous function in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-function-in-expression/m-p/523489#M195604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Have a look at the application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 09:45:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-function-in-expression/m-p/523489#M195604</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2013-11-14T09:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Previous function in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-function-in-expression/m-p/523490#M195605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for this hints but I think they are not something I can apply here. I could do this in script like Aunez proposed, but this would be only expression in where I would need that. That is why I would like to do this in expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be "inventory period" the dimension that I would like use here (previous in that dimension)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Janne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 10:45:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-function-in-expression/m-p/523490#M195605</guid>
      <dc:creator />
      <dc:date>2013-11-14T10:45:08Z</dc:date>
    </item>
  </channel>
</rss>

