<?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: Sum if in Pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-if-in-Pivot-table/m-p/1512365#M600919</link>
    <description>&lt;P&gt;You could use something like:&lt;/P&gt;&lt;P&gt;if(Indicator='N', Column(16))&lt;/P&gt;&lt;P&gt;but not within aggregation-functions like sum(). If you really want to apply an aggregation you need to use your origin expression - probably wrapped with an aggr() function like:&lt;/P&gt;&lt;P&gt;sum(aggr(YourOriginExp, Dim1, Dim2))&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
    <pubDate>Mon, 26 Nov 2018 15:13:56 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2018-11-26T15:13:56Z</dc:date>
    <item>
      <title>Sum if in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-if-in-Pivot-table/m-p/1512348#M600915</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Please let me know how to use column() or column name&amp;nbsp; in sum if statement&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sum(if(Indicator='N', Column(16))&lt;/P&gt;&lt;P&gt;or&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sum(if(Indicator='N', [Column Name])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I am not able&amp;nbsp; to use both statement in sum if statement&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:08:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-if-in-Pivot-table/m-p/1512348#M600915</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T05:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Sum if in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-if-in-Pivot-table/m-p/1512351#M600916</link>
      <description>&lt;P&gt;I think all&amp;nbsp;you might need an extra ')' at the end of the statement?&lt;/P&gt;&lt;P&gt;Sum(if(Indicator='N', Column(16)))&lt;/P&gt;&lt;P&gt;or&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sum(if(Indicator='N', [Column Name]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;It might be useful to see your expression in the column being referenced and what kind of outcome you are trying to achieve.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 15:05:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-if-in-Pivot-table/m-p/1512351#M600916</guid>
      <dc:creator>r3iuk</dc:creator>
      <dc:date>2018-11-26T15:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sum if in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-if-in-Pivot-table/m-p/1512352#M600917</link>
      <description>It would be useful to see your pivot table</description>
      <pubDate>Mon, 26 Nov 2018 14:55:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-if-in-Pivot-table/m-p/1512352#M600917</guid>
      <dc:creator>vmoreno2605</dc:creator>
      <dc:date>2018-11-26T14:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Sum if in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-if-in-Pivot-table/m-p/1512359#M600918</link>
      <description>Is Column(16) an expression or just a field name? If it is an expression involving Sum, Avg, Min, Max or any kind of aggregation, then this might not really work for you because you will be doing Aggregation over an aggregation. May be a sample might help us understand what you are trying to do to help you better here.</description>
      <pubDate>Mon, 26 Nov 2018 15:05:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-if-in-Pivot-table/m-p/1512359#M600918</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-26T15:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Sum if in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-if-in-Pivot-table/m-p/1512365#M600919</link>
      <description>&lt;P&gt;You could use something like:&lt;/P&gt;&lt;P&gt;if(Indicator='N', Column(16))&lt;/P&gt;&lt;P&gt;but not within aggregation-functions like sum(). If you really want to apply an aggregation you need to use your origin expression - probably wrapped with an aggr() function like:&lt;/P&gt;&lt;P&gt;sum(aggr(YourOriginExp, Dim1, Dim2))&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 15:13:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-if-in-Pivot-table/m-p/1512365#M600919</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-11-26T15:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Sum if in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-if-in-Pivot-table/m-p/1512425#M600920</link>
      <description>&lt;P&gt;Thanks for the reply,&lt;/P&gt;&lt;P&gt;can you send me the syntax or sample code with ')'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 17:07:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-if-in-Pivot-table/m-p/1512425#M600920</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-26T17:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Sum if in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-if-in-Pivot-table/m-p/1512428#M600921</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;Yes the column(16) has the below expression with OR condition&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;sum({&amp;lt;[Indicator={'Y'}&amp;gt;}HC * [Better Estimate_Input]&lt;BR /&gt;+&lt;BR /&gt;(sum({&amp;lt;[&lt;SPAN&gt;Indicator&lt;/SPAN&gt;={'N'}&amp;gt;}HC_Input)* AVG({&amp;lt;[Event Id]={'BAM','BAT'}&amp;gt;} [PY TC US]) )&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;next column i am using the sum if statement&amp;nbsp;&lt;/P&gt;&lt;P&gt;sum(if(indicator='N', column(16)).&lt;/P&gt;&lt;P&gt;Reason using Sum if is, user inputing mulitple values in the front end / table box&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 17:18:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-if-in-Pivot-table/m-p/1512428#M600921</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-26T17:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Sum if in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-if-in-Pivot-table/m-p/1512438#M600922</link>
      <description>&lt;P&gt;Do you have Indicator as one of your dimensions in the chart?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 17:48:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-if-in-Pivot-table/m-p/1512438#M600922</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-26T17:48:49Z</dc:date>
    </item>
  </channel>
</rss>

