<?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: Before function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Before-function/m-p/284359#M105699</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kamielrajaram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure if I got your request properly, but I think you could get what you want if you combine dimnesionality() to check if your on total line, bottom() to get the last line and advanced aggregation to rebuild the table on total line virtually, maby like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(secondarydimensionality()=0,sum(aggr(aggr( bottom(sum(Value),2),Group,Article),Group)),before(sum(Value)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The exact expression will depend on the orientation of your pivot dimensions, so I added two examples with dimensions in horizontal or vertical orientation.&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>Fri, 23 Sep 2011 09:38:09 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2011-09-23T09:38:09Z</dc:date>
    <item>
      <title>Before function</title>
      <link>https://community.qlik.com/t5/QlikView/Before-function/m-p/284358#M105698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Good day all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the before function and it works fine, the problem is that I need a value in the total column. I have 2 dimensions, groups and weeks. the final value for each group needs to be added to give me a total value. Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kamiel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2011 07:39:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Before-function/m-p/284358#M105698</guid>
      <dc:creator>kamielrajaram</dc:creator>
      <dc:date>2011-09-23T07:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: Before function</title>
      <link>https://community.qlik.com/t5/QlikView/Before-function/m-p/284359#M105699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kamielrajaram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure if I got your request properly, but I think you could get what you want if you combine dimnesionality() to check if your on total line, bottom() to get the last line and advanced aggregation to rebuild the table on total line virtually, maby like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(secondarydimensionality()=0,sum(aggr(aggr( bottom(sum(Value),2),Group,Article),Group)),before(sum(Value)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The exact expression will depend on the orientation of your pivot dimensions, so I added two examples with dimensions in horizontal or vertical orientation.&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>Fri, 23 Sep 2011 09:38:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Before-function/m-p/284359#M105699</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-23T09:38:09Z</dc:date>
    </item>
  </channel>
</rss>

