<?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: Conditional Sum Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-Sum-Expression/m-p/401328#M1149436</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;figured it out!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 May 2013 16:14:43 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-05-23T16:14:43Z</dc:date>
    <item>
      <title>Conditional Sum Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Sum-Expression/m-p/401327#M1149435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;I have been trying to write a conditional sum expression and the syntax works but the numbers are wrong. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;I have a list of Managers who each have some Preferred ("Yes") and some Not Preferred ("No") transactions. I want to sum up how much their Not Preferred spend is. When I use the below syntax, I get the TOTAL spend for the manager rather than just the Not Preferred Spend. I'm thinking it may need an "if" function somewhere but am not sure. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Thoughts are very appreciated!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;I have added a calculated dimension to Manager:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;=if([Preferred]='No',[Manager])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;My expression is: &lt;SPAN style="color: #312e25; font-size: 11px; background-color: #f5f3e5;"&gt;Sum({$&amp;lt;Preferred={'No'}&amp;gt;}[Spend])&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #312e25; font-family: monospace; font-size: 11px; background-color: #f5f3e5;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 14:31:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Sum-Expression/m-p/401327#M1149435</guid>
      <dc:creator />
      <dc:date>2013-05-23T14:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Sum Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Sum-Expression/m-p/401328#M1149436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;figured it out!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 16:14:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Sum-Expression/m-p/401328#M1149436</guid>
      <dc:creator />
      <dc:date>2013-05-23T16:14:43Z</dc:date>
    </item>
  </channel>
</rss>

