<?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 Nested If state in expression in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Sum-Nested-If-state-in-expression/m-p/980383#M14203</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Currently I have a sum working correctly if one of the two values is selected.&amp;nbsp; If I select A, i get the sum of the associated column, if I select B, I get the sum of the associated column and if I chose both from the filter box, I get the total summed of the two selection correctly.&amp;nbsp; The issue I am having is that if nothing is selected in the filter box, I also want to show the total summed since nothing is selected, but current I get a larger number in the KPI box than is possible, so something is double counting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WARR_CAT is a filter box&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(if( WARR_CAT = 'WARR',WARR_TOTAL_COST_USD, if( WARR_CAT = 'MA',MA_TOTAL_COST_USD, MA_WARR_TOTAL_COST_USD)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If both are selected and if neither is select I want the sum of &lt;SPAN style="font-size: 13.3333px;"&gt;MA_WARR_TOTAL_COST_USD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Oct 2015 14:55:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-10-01T14:55:10Z</dc:date>
    <item>
      <title>Sum Nested If state in expression</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-Nested-If-state-in-expression/m-p/980383#M14203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Currently I have a sum working correctly if one of the two values is selected.&amp;nbsp; If I select A, i get the sum of the associated column, if I select B, I get the sum of the associated column and if I chose both from the filter box, I get the total summed of the two selection correctly.&amp;nbsp; The issue I am having is that if nothing is selected in the filter box, I also want to show the total summed since nothing is selected, but current I get a larger number in the KPI box than is possible, so something is double counting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WARR_CAT is a filter box&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(if( WARR_CAT = 'WARR',WARR_TOTAL_COST_USD, if( WARR_CAT = 'MA',MA_TOTAL_COST_USD, MA_WARR_TOTAL_COST_USD)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If both are selected and if neither is select I want the sum of &lt;SPAN style="font-size: 13.3333px;"&gt;MA_WARR_TOTAL_COST_USD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 14:55:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-Nested-If-state-in-expression/m-p/980383#M14203</guid>
      <dc:creator />
      <dc:date>2015-10-01T14:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Nested If state in expression</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-Nested-If-state-in-expression/m-p/980384#M14204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Concat(WARR_CAT) = 'WARR', Sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;WARR_TOTAL_COST_USD),&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;If(&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Concat(WARR_CAT) = 'MA', Sum(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;MA_TOTAL_COST_USD), Sum(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;MA_WARR_TOTAL_COST_USD)))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 15:54:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-Nested-If-state-in-expression/m-p/980384#M14204</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-10-01T15:54:17Z</dc:date>
    </item>
  </channel>
</rss>

