<?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 Before function with variable in pivot in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Before-function-with-variable-in-pivot/m-p/150125#M28207</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to use the before function with a variable in a pivot and can't get it to work as wanted. What I wan't to do is to calculate one of the rows from the previous column data.&lt;/P&gt;&lt;P&gt;In the first two columns it works but then onwards, when the calculated values should change, it still uses the static variable value.&lt;/P&gt;&lt;P&gt;Here is the calculation used:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;if( ColumnNo( )=1, &lt;B&gt;&lt;I&gt;$(variable)&lt;/I&gt;&lt;/B&gt;, (before($variable) + before(sum(Something)))&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Please see attached file for further explanation. Is there another function to use or any work around ?&lt;/P&gt;&lt;P&gt;/Michael&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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, 23 Jul 2009 18:55:00 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-07-23T18:55:00Z</dc:date>
    <item>
      <title>Before function with variable in pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Before-function-with-variable-in-pivot/m-p/150125#M28207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to use the before function with a variable in a pivot and can't get it to work as wanted. What I wan't to do is to calculate one of the rows from the previous column data.&lt;/P&gt;&lt;P&gt;In the first two columns it works but then onwards, when the calculated values should change, it still uses the static variable value.&lt;/P&gt;&lt;P&gt;Here is the calculation used:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;if( ColumnNo( )=1, &lt;B&gt;&lt;I&gt;$(variable)&lt;/I&gt;&lt;/B&gt;, (before($variable) + before(sum(Something)))&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Please see attached file for further explanation. Is there another function to use or any work around ?&lt;/P&gt;&lt;P&gt;/Michael&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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, 23 Jul 2009 18:55:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Before-function-with-variable-in-pivot/m-p/150125#M28207</guid>
      <dc:creator />
      <dc:date>2009-07-23T18:55:00Z</dc:date>
    </item>
  </channel>
</rss>

