<?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: NESTED SUM WITH IF in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/NESTED-SUM-WITH-IF/m-p/1211481#M388552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the "52" try in textbox like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(aggr(if(sum(aggr(sum({&amp;lt;PROMOFLAG={'PROMO'}&amp;gt;}TOTAL_AMOUNT),%Order_Key))&amp;gt;0,&lt;/P&gt;&lt;P&gt;sum(aggr(sum({&amp;lt;PROMOFLAG={'NOT PROMO'}&amp;gt;}TOTAL_AMOUNT),%Order_Key))),%Order_Key))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 23 Oct 2016 13:39:31 GMT</pubDate>
    <dc:creator>Frank_Hartmann</dc:creator>
    <dc:date>2016-10-23T13:39:31Z</dc:date>
    <item>
      <title>NESTED SUM WITH IF</title>
      <link>https://community.qlik.com/t5/QlikView/NESTED-SUM-WITH-IF/m-p/1211478#M388549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dears,&lt;/P&gt;&lt;P&gt;if i have this data :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" style="width: 498px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;%Order_Key&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;PROMOFLAG&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;ITEM_DESCRIPTION&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;TOTAL_AMOUNT&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="17" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;43103&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;PROMO&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;BBQ Chicken Large&lt;/TD&gt;&lt;TD align="right" class="xl65" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;64&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="17" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;43103&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;PROMO&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;Buffalo Chicken Large&lt;/TD&gt;&lt;TD align="right" class="xl65" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;64&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="17" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;43103&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;PROMO&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;Deluxe Large&lt;/TD&gt;&lt;TD align="right" class="xl65" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;64&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="17" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;43103&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;NOT PROMO&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;Margarita Large&lt;/TD&gt;&lt;TD align="right" class="xl65" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="17" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;43103&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;NOT PROMO&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;Mirinda&lt;/TD&gt;&lt;TD align="right" class="xl65" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="17" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;43110&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;NOT PROMO&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;Ranchy Original Medium&lt;/TD&gt;&lt;TD align="right" class="xl65" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="17" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;43110&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;NOT PROMO&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;Ranchy Original No Jalapeno M.&lt;/TD&gt;&lt;TD align="right" class="xl65" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="17" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;43111&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;PROMO&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;BBQ Chicken Small&lt;/TD&gt;&lt;TD align="right" class="xl65" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="17" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;43111&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;PROMO&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;BBQ Chicken Wings&lt;/TD&gt;&lt;TD align="right" class="xl65" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="17" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;43111&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;NOT PROMO&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;Mirinda Citrus&lt;/TD&gt;&lt;TD align="right" class="xl65" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="17" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;43112&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;NOT PROMO&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;Grilled Chicken Medium&lt;/TD&gt;&lt;TD align="right" class="xl65" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="17" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;43112&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;NOT PROMO&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;Ranchy Sunset Large&lt;/TD&gt;&lt;TD align="right" class="xl65" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="17" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;43113&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;NOT PROMO&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;Quesadilla BBQ&lt;/TD&gt;&lt;TD align="right" class="xl65" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;18&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="17" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;43113&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;PROMO&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;Ranch Dip&lt;/TD&gt;&lt;TD align="right" class="xl65" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="17" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;43113&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;PROMO&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;Tomato Sauce Dip&lt;/TD&gt;&lt;TD align="right" class="xl65" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i need to get the sum in text box for each %Order_Key to define what i sold for Promo and Not Promo in the same order.&lt;/P&gt;&lt;P&gt;example: this order(43103) has Promo &amp;amp; Not Promo i need to get the Total Amount for &lt;STRONG&gt;Promo &amp;amp; NOT Promo &lt;/STRONG&gt; Individual like this: Promo:192&amp;nbsp; .&amp;nbsp; NOT PROMO: 32 .&lt;/P&gt;&lt;P&gt;but orders # (43110 , 43112) don't have Promo so it should not appear on my Total Not Promo because the only thing that i need to see is the total promo and in another text only the total of Not Promo in the orders has Promo(Extra Sales).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get this result only when i select the order but when it was over all orders the formula not working &lt;SPAN style="font-size: 10pt;"&gt; and i gut confused .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Oct 2016 12:36:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NESTED-SUM-WITH-IF/m-p/1211478#M388549</guid>
      <dc:creator>jood_ahmad</dc:creator>
      <dc:date>2016-10-23T12:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: NESTED SUM WITH IF</title>
      <link>https://community.qlik.com/t5/QlikView/NESTED-SUM-WITH-IF/m-p/1211479#M388550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For 43103 try in first textbox:&lt;/P&gt;&lt;P&gt;=sum(aggr(sum({&amp;lt;PROMOFLAG={'NOT PROMO'},%Order_Key={'43103'}&amp;gt;}TOTAL_AMOUNT),%Order_Key))&lt;/P&gt;&lt;P&gt;and in second textbox:&lt;/P&gt;&lt;P&gt;=sum(aggr(sum({&amp;lt;PROMOFLAG={'PROMO'},%Order_Key={'43103'}&amp;gt;}TOTAL_AMOUNT),%Order_Key))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Oct 2016 12:44:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NESTED-SUM-WITH-IF/m-p/1211479#M388550</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2016-10-23T12:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: NESTED SUM WITH IF</title>
      <link>https://community.qlik.com/t5/QlikView/NESTED-SUM-WITH-IF/m-p/1211480#M388551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you Frank, it is work with me like this but the main issue that i face it is when i apply the formula for all not specific %Order_Key it is not working it give me all 'NOT Prom' amount not only orders have promo item and not promo item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for all NOT PROMO amount as the example it must give me 52.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Oct 2016 13:15:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NESTED-SUM-WITH-IF/m-p/1211480#M388551</guid>
      <dc:creator>jood_ahmad</dc:creator>
      <dc:date>2016-10-23T13:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: NESTED SUM WITH IF</title>
      <link>https://community.qlik.com/t5/QlikView/NESTED-SUM-WITH-IF/m-p/1211481#M388552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the "52" try in textbox like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(aggr(if(sum(aggr(sum({&amp;lt;PROMOFLAG={'PROMO'}&amp;gt;}TOTAL_AMOUNT),%Order_Key))&amp;gt;0,&lt;/P&gt;&lt;P&gt;sum(aggr(sum({&amp;lt;PROMOFLAG={'NOT PROMO'}&amp;gt;}TOTAL_AMOUNT),%Order_Key))),%Order_Key))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Oct 2016 13:39:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NESTED-SUM-WITH-IF/m-p/1211481#M388552</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2016-10-23T13:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: NESTED SUM WITH IF</title>
      <link>https://community.qlik.com/t5/QlikView/NESTED-SUM-WITH-IF/m-p/1211482#M388553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this is way more complicated than it should be. The same logic could be resolved with a single SUM and a Set Analysis condition with an advanced search. Something along these lines:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;lt;%Order_Key={"=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum({&amp;lt;PROMOFLAG={'PROMO'}&amp;gt;}TOTAL_AMOUNT)&amp;gt;0&lt;/SPAN&gt;"} ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PROMOFLAG={'NOT PROMO'}&lt;/SPAN&gt;&amp;gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;TOTAL_AMOUNT)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;Learn advanced QlikView and Qlik Sense techniques in my book &lt;A href="http://www.amazon.com/gp/product/1118949552/ref=as_li_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=1118949552&amp;amp;linkCode=as2&amp;amp;tag=natursyner0f-20&amp;amp;linkId=CVZRHMG6CVR2FGTA"&gt;QlikView Your Business&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Oct 2016 15:50:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NESTED-SUM-WITH-IF/m-p/1211482#M388553</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2016-10-23T15:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: NESTED SUM WITH IF</title>
      <link>https://community.qlik.com/t5/QlikView/NESTED-SUM-WITH-IF/m-p/1211483#M388554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you i will try it now but can you explain to me the logic that you use it in this formula, actually i'm not that good in set analysis, and how can i become good in set analysis is there any book or exercise to improve my knowledge.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 07:28:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NESTED-SUM-WITH-IF/m-p/1211483#M388554</guid>
      <dc:creator>jood_ahmad</dc:creator>
      <dc:date>2016-10-24T07:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: NESTED SUM WITH IF</title>
      <link>https://community.qlik.com/t5/QlikView/NESTED-SUM-WITH-IF/m-p/1211484#M388555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Thank you i will try it now but can you explain to me the logic that you use it in this formula, actually i'm not that good in set analysis, and how can i become good in set analysis is there any book or exercise to improve my knowledge.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;it look perfect and simple.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 07:29:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NESTED-SUM-WITH-IF/m-p/1211484#M388555</guid>
      <dc:creator>jood_ahmad</dc:creator>
      <dc:date>2016-10-24T07:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: NESTED SUM WITH IF</title>
      <link>https://community.qlik.com/t5/QlikView/NESTED-SUM-WITH-IF/m-p/1211485#M388556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have a look at this thread:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-8898"&gt;Books and literature&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 08:14:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NESTED-SUM-WITH-IF/m-p/1211485#M388556</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2016-10-24T08:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: NESTED SUM WITH IF</title>
      <link>https://community.qlik.com/t5/QlikView/NESTED-SUM-WITH-IF/m-p/1211486#M388557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ahmad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I listed my book &lt;A href="http://www.amazon.com/gp/product/1118949552/ref=as_li_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=1118949552&amp;amp;linkCode=as2&amp;amp;tag=natursyner0f-20&amp;amp;linkId=CVZRHMG6CVR2FGTA"&gt;QlikView My Business&lt;/A&gt; in my signature. This book is providing a comprehensive tutorial that includes a very deep dive into Set Analysis, Advanced Search, Advanced Aggregation, and many other advanced QlikView and Qlik Sense techniques. This is the only book in the market that starts from the beginners level and takes you deep into the advanced material. All other books are either beginners books or advanced books, but not both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope you enjoy it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 14:41:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NESTED-SUM-WITH-IF/m-p/1211486#M388557</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2016-10-24T14:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: NESTED SUM WITH IF</title>
      <link>https://community.qlik.com/t5/QlikView/NESTED-SUM-WITH-IF/m-p/1211487#M388558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much Oleg, and i will take your book from Amazon &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you explain to me the Expression please , how the qv accept this expression some time i wrote like this and it is not work. you use the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;%Order_Key in the beginning ; like you use it the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;%Order_Key as pointer to go through it to check the total amount if it &amp;gt; 0 for the promo and it will give me the total amount for NOT PROMO, is this right?!&lt;/SPAN&gt;&lt;/SPAN&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;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2016 08:01:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NESTED-SUM-WITH-IF/m-p/1211487#M388558</guid>
      <dc:creator>jood_ahmad</dc:creator>
      <dc:date>2016-10-25T08:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: NESTED SUM WITH IF</title>
      <link>https://community.qlik.com/t5/QlikView/NESTED-SUM-WITH-IF/m-p/1211488#M388559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ahmad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes, you got it right. Using Advanced Search in Set Analysis, you can verify any "condition" for any field. Based on your explanation, you wanted to calculate totals per %Order_Key that satisfied certain conditions. For that purpose, I picked the same field for the Advanced Search condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2016 15:31:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NESTED-SUM-WITH-IF/m-p/1211488#M388559</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2016-10-25T15:31:03Z</dc:date>
    </item>
  </channel>
</rss>

