<?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 Sum not appearing for Expressions with before Function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-not-appearing-for-Expressions-with-before-Function/m-p/173523#M42679</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just learned about adding code snippet to forums &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; thought of explaining the same again with the new tags.&lt;/P&gt;&lt;P&gt;i have a pivot table where i do what if analysis where every dimension will have a percentage and a delay, so i add pct and delays and create a what if scenario using following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;&lt;BR /&gt;Before(&lt;BR /&gt;SUM((-1*(Val* pick(wildmatch(Type,'A', 'B','*'),$(ADi)/100, $(BDi)/100, 1)))+Val )&lt;BR /&gt;,&lt;BR /&gt;pick(wildmatch(Type,'A', 'B','*'),$(AMv), $(BMv), 0)&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;BR /&gt;and this expression dont create partial sums but if i try teh same without before function which is used for delays the partial sum works fine like teh following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;sum((-1*(Val* pick(wildmatch(Type,'A', 'B','*'),$(ADi)/100, $(BDi)/100, 1)))+Val )&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;any idea why the above dont calculate sum ?&lt;/P&gt;&lt;P&gt;it will great if some one can help me out here.&lt;/P&gt;&lt;P&gt;Jeswanth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Mar 2011 08:09:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-03-23T08:09:01Z</dc:date>
    <item>
      <title>Sum not appearing for Expressions with before Function</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-not-appearing-for-Expressions-with-before-Function/m-p/173522#M42678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have a pivot table with following expression,&lt;/P&gt;&lt;P&gt;Before(&lt;/P&gt;&lt;P&gt;sum((-1*(Val* pick(wildmatch(Type,'A', 'B','*'),$(ADi)/100, $(BDi)/100, 1)))+Val )&lt;BR /&gt; ,&lt;BR /&gt; pick(wildmatch(Type,'A', 'B','*'),$(AMv), $(BMv), 0)&lt;BR /&gt; )&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;where i am moving a defined percentage of field to next N column using variables, now i need to show the total of the this column in the bottom using partial sum, but its not working, any idea ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Jeswanth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2011 10:13:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-not-appearing-for-Expressions-with-before-Function/m-p/173522#M42678</guid>
      <dc:creator />
      <dc:date>2011-03-22T10:13:45Z</dc:date>
    </item>
    <item>
      <title>Sum not appearing for Expressions with before Function</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-not-appearing-for-Expressions-with-before-Function/m-p/173523#M42679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just learned about adding code snippet to forums &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; thought of explaining the same again with the new tags.&lt;/P&gt;&lt;P&gt;i have a pivot table where i do what if analysis where every dimension will have a percentage and a delay, so i add pct and delays and create a what if scenario using following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;&lt;BR /&gt;Before(&lt;BR /&gt;SUM((-1*(Val* pick(wildmatch(Type,'A', 'B','*'),$(ADi)/100, $(BDi)/100, 1)))+Val )&lt;BR /&gt;,&lt;BR /&gt;pick(wildmatch(Type,'A', 'B','*'),$(AMv), $(BMv), 0)&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;BR /&gt;and this expression dont create partial sums but if i try teh same without before function which is used for delays the partial sum works fine like teh following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;sum((-1*(Val* pick(wildmatch(Type,'A', 'B','*'),$(ADi)/100, $(BDi)/100, 1)))+Val )&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;any idea why the above dont calculate sum ?&lt;/P&gt;&lt;P&gt;it will great if some one can help me out here.&lt;/P&gt;&lt;P&gt;Jeswanth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 08:09:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-not-appearing-for-Expressions-with-before-Function/m-p/173523#M42679</guid>
      <dc:creator />
      <dc:date>2011-03-23T08:09:01Z</dc:date>
    </item>
    <item>
      <title>AW:Sum not appearing for Expressions with before Function</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-not-appearing-for-Expressions-with-before-Function/m-p/173524#M42680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;the pivottable needs a function for the sum, that's why you need to aggregate your expression by one or more dimenions:&lt;/P&gt;&lt;P&gt;Sum(Aggr(your_expression),Dimension1,Dimension2,...))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 08:35:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-not-appearing-for-Expressions-with-before-Function/m-p/173524#M42680</guid>
      <dc:creator>brenner_martina</dc:creator>
      <dc:date>2011-03-23T08:35:17Z</dc:date>
    </item>
    <item>
      <title>AW:Sum not appearing for Expressions with before Function</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-not-appearing-for-Expressions-with-before-Function/m-p/173525#M42681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Martina,&lt;/P&gt;&lt;P&gt;I tried that alredy and it comes for the second code snippet above, but when i try teh same for first one with Before it returns Zero. Any idea if we need to take care when use Before function ? see what i tried below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;Sum(&lt;BR /&gt;Aggr(&lt;BR /&gt;Before(&lt;BR /&gt;Sum((-1*(Val* pick(wildmatch(Type,'A', 'B','*'),$(ADi)/100, $(BDi)/100, 1)))+Val )&lt;BR /&gt;,&lt;BR /&gt;pick(wildmatch(Type,'A', 'B','*'),$(AMv), $(BMv), 0)&lt;BR /&gt;),Type))&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I have a sample qvw file, but not seeing any option to share teh same here. at least you can see a screen shot here.&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/7167.Qv.jpg"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/7167.Qv.jpg" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This one before using Aggr Function&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/7242.qv1.jpg"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/7242.qv1.jpg" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Jeswanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 09:57:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-not-appearing-for-Expressions-with-before-Function/m-p/173525#M42681</guid>
      <dc:creator />
      <dc:date>2011-03-23T09:57:01Z</dc:date>
    </item>
  </channel>
</rss>

