<?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: Combining 'if' and 'sum' in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Combining-if-and-sum/m-p/879610#M997864</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Both methods work, but Set Analysis will have better performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jun 2015 09:16:55 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2015-06-23T09:16:55Z</dc:date>
    <item>
      <title>Combining 'if' and 'sum'</title>
      <link>https://community.qlik.com/t5/QlikView/Combining-if-and-sum/m-p/879605#M997859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can I combine an 'if' and a 'sum' statement within a gauge chart?&amp;nbsp; For example, if the office location = 'XXX' give me the sum of the Cases Closed Ontime&amp;nbsp; / Total Number of Cases.&amp;nbsp; At present, my expression reads...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;=sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;SPAN style="color: #800000;"&gt;TRCaseClosedOntimeCounter&lt;/SPAN&gt;)/&lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;TRJobCounter&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;How do I build in the 'if' statement?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 08:42:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combining-if-and-sum/m-p/879605#M997859</guid>
      <dc:creator />
      <dc:date>2015-06-23T08:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Combining 'if' and 'sum'</title>
      <link>https://community.qlik.com/t5/QlikView/Combining-if-and-sum/m-p/879606#M997860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;=sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(if(Location = 'XXX', &lt;SPAN style="color: #800000;"&gt;TRCaseClosedOntimeCounter&lt;/SPAN&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;/ &lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;(if(Location = 'XXX', &lt;SPAN style="color: #800000;"&gt;TRJobCounter&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;or using set Analysis:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;=sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({&amp;lt;Location = {'XXX'}&amp;gt;} &lt;SPAN style="color: #800000;"&gt;TRCaseClosedOntimeCounter&lt;/SPAN&gt;)/&lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;({&amp;lt;Location = {'XXX'}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;TRJobCounter&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 08:49:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combining-if-and-sum/m-p/879606#M997860</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-23T08:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Combining 'if' and 'sum'</title>
      <link>https://community.qlik.com/t5/QlikView/Combining-if-and-sum/m-p/879607#M997861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;office location = 'XXX' ,&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #800000;"&gt;TRCaseClosedOntimeCounter&lt;/SPAN&gt;)/&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #0000ff;"&gt;sum&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #800000;"&gt;TRJobCounter&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 08:50:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combining-if-and-sum/m-p/879607#M997861</guid>
      <dc:creator>arulsettu</dc:creator>
      <dc:date>2015-06-23T08:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Combining 'if' and 'sum'</title>
      <link>https://community.qlik.com/t5/QlikView/Combining-if-and-sum/m-p/879608#M997862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best method using Set Analysis without if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;Location = {'XXX'}&lt;/SPAN&gt;&amp;gt;}&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #800000;"&gt;TRCaseClosedOntimeCounter&lt;/SPAN&gt;)/&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #0000ff;"&gt;sum&lt;/SPAN&gt;(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;{&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;Location = {'XXX'}&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #800000;"&gt;TRJobCounter&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 09:01:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combining-if-and-sum/m-p/879608#M997862</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-06-23T09:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Combining 'if' and 'sum'</title>
      <link>https://community.qlik.com/t5/QlikView/Combining-if-and-sum/m-p/879609#M997863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the prompt responses. I'm still getting to grips with how formulas are constructed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's the difference between combining the 'if' and 'sum' statements and using Set Analysis?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 09:15:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combining-if-and-sum/m-p/879609#M997863</guid>
      <dc:creator />
      <dc:date>2015-06-23T09:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Combining 'if' and 'sum'</title>
      <link>https://community.qlik.com/t5/QlikView/Combining-if-and-sum/m-p/879610#M997864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Both methods work, but Set Analysis will have better performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 09:16:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combining-if-and-sum/m-p/879610#M997864</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-06-23T09:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: Combining 'if' and 'sum'</title>
      <link>https://community.qlik.com/t5/QlikView/Combining-if-and-sum/m-p/879611#M997865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set expressions should perform better&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 09:18:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combining-if-and-sum/m-p/879611#M997865</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-06-23T09:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: Combining 'if' and 'sum'</title>
      <link>https://community.qlik.com/t5/QlikView/Combining-if-and-sum/m-p/879612#M997866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all... I've now set this up as a Set Analysis &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 13:43:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combining-if-and-sum/m-p/879612#M997866</guid>
      <dc:creator />
      <dc:date>2015-06-23T13:43:10Z</dc:date>
    </item>
  </channel>
</rss>

