<?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: Problems with Excel sumifs() equivalents in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problems-with-Excel-sumifs-equivalents/m-p/1028519#M929227</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;many thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Mar 2016 13:02:59 GMT</pubDate>
    <dc:creator>stig1984</dc:creator>
    <dc:date>2016-03-21T13:02:59Z</dc:date>
    <item>
      <title>Problems with Excel sumifs() equivalents</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-Excel-sumifs-equivalents/m-p/1028515#M929223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am attempting to create an expression that sums data for a certain set of criteria and then calculates this as a percentage of a larger set of criteria.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Excel Capture.PNG" class="jive-image image-1" height="207" src="/legacyfs/online/118606_Excel Capture.PNG" style="height: 207px; width: 792.222px;" width="792" /&gt;&lt;/P&gt;&lt;P&gt;In the above example I need to see the percentage of waste product on the Nectarines packed on prod_run_no 200052 per FPInnerCount as a percentage of the total FPInnerCount for all three&amp;nbsp; Prod_Class's, but without displaying Class 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Excel I would do this using a sumifs() (shown above) formula but I cannot get it to correctly total as a percentage in Qlikview - I can get actual quantities easily enough but I need the percentage of the whole production run (and then scaled up by day, week, month etc.) with Product and Category as dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried various sum(if(&amp;nbsp; )) statements as suggested in other threads and have tried to create additional variables in the script when loading (such as LOAD sum(if(Prod_Class='Class 2',FPInnerCount)) as Class2Count) but nothing has worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been working on this now for most of the afternoon trying different ideas and am out of ideas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-Excel-sumifs-equivalents/m-p/1028515#M929223</guid>
      <dc:creator>stig1984</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Excel sumifs() equivalents</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-Excel-sumifs-equivalents/m-p/1028516#M929224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try something like this using set analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;Sum( {&amp;lt;Prod_Class = {'WASTE'}, PROD_RUN = {200052}&amp;gt;} FPInnerCount)&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sum( {&amp;lt;PROD_RUN = {200052}&amp;gt;} FPInnerCount)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 18:55:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-Excel-sumifs-equivalents/m-p/1028516#M929224</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-18T18:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Excel sumifs() equivalents</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-Excel-sumifs-equivalents/m-p/1028517#M929225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think, this answer your question.&lt;/P&gt;&lt;P&gt;I have data like,&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/118741_2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;with Output as,&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/118745_1.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Dimension:&lt;/P&gt;&lt;P&gt;Prod_Run_No, Prod_Class&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;Total=sum(FPlnnerCount)&lt;/P&gt;&lt;P&gt;Sub Total=Sum(TOTAL &amp;lt;Prod_Run_No&amp;gt; FPInnerCount)&lt;/P&gt;&lt;P&gt;% of Sub Total=sum(FPInnerCount)/Sum(TOTAL &amp;lt;Prod_Run_No&amp;gt; FPInnerCount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Presentation Tab:&lt;/P&gt;&lt;P&gt;Checked "Show Partial Sums" for Dimension Prod_Class&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2016 07:34:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-Excel-sumifs-equivalents/m-p/1028517#M929225</guid>
      <dc:creator>amayuresh</dc:creator>
      <dc:date>2016-03-21T07:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Excel sumifs() equivalents</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-Excel-sumifs-equivalents/m-p/1028518#M929226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, should have been clearer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is each run I need to run the calculation on, not just 200052.&amp;nbsp; I need somehow to reference the production run number for every run to get the total inner count and use the inner count for just the waste to calculate the percentage for every run.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2016 12:48:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-Excel-sumifs-equivalents/m-p/1028518#M929226</guid>
      <dc:creator>stig1984</dc:creator>
      <dc:date>2016-03-21T12:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Excel sumifs() equivalents</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-Excel-sumifs-equivalents/m-p/1028519#M929227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;many thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2016 13:02:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-Excel-sumifs-equivalents/m-p/1028519#M929227</guid>
      <dc:creator>stig1984</dc:creator>
      <dc:date>2016-03-21T13:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Excel sumifs() equivalents</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-Excel-sumifs-equivalents/m-p/1028520#M929228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Even Better - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I do sum(FPInnerCount) / sum( {1} &amp;lt;Prod_Run_No&amp;gt; FPInnerCount) then the percenatge calculation doesn't change even if I make a selection on Prod_Class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all your help - my forehead can now have a rest from banging it on a brick wall.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2016 13:19:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-Excel-sumifs-equivalents/m-p/1028520#M929228</guid>
      <dc:creator>stig1984</dc:creator>
      <dc:date>2016-03-21T13:19:41Z</dc:date>
    </item>
  </channel>
</rss>

