<?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 If statements  - Sum if in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Nested-If-statements-Sum-if/m-p/836505#M1013811</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Agree with sunindia that set analysis is the way to go, but I have to ask:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you are expecting the sum(HOURS) to evaluate to if this field contains the string values of 'Regular' and 'Overtime'?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Apr 2015 00:54:28 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-04-28T00:54:28Z</dc:date>
    <item>
      <title>Nested If statements  - Sum if</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-If-statements-Sum-if/m-p/836503#M1013809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello the community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to write a nested if statement with 2 different fields of data.&lt;/P&gt;&lt;P&gt;One field is called HOURS, the other is called FUNCTION&lt;/P&gt;&lt;P&gt;Basically I want the sum of 'regular' hours of a specific function.&lt;/P&gt;&lt;P&gt;I can't tell where my error is...&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[FUNCTION]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='ABC' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;HOURS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Regular'), &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;HOURS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;OR &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[FUNCTION]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='ABC' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;HOURS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Overtime'), &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;HOURS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;If you have any idea....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you &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, 28 Apr 2015 00:28:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-If-statements-Sum-if/m-p/836503#M1013809</guid>
      <dc:creator />
      <dc:date>2015-04-28T00:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Nested If statements  - Sum if</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-If-statements-Sum-if/m-p/836504#M1013810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why don't you use set analysis here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;FUNCTION = {'ABC'}, HOURS = {'Regular'}&amp;gt;} HOURS)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;=Sum({&amp;lt;FUNCTION = {'ABC'}, HOURS = {'Overtime'}&amp;gt;} HOURS)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 00:44:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-If-statements-Sum-if/m-p/836504#M1013810</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-28T00:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Nested If statements  - Sum if</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-If-statements-Sum-if/m-p/836505#M1013811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Agree with sunindia that set analysis is the way to go, but I have to ask:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you are expecting the sum(HOURS) to evaluate to if this field contains the string values of 'Regular' and 'Overtime'?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 00:54:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-If-statements-Sum-if/m-p/836505#M1013811</guid>
      <dc:creator />
      <dc:date>2015-04-28T00:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Nested If statements  - Sum if</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-If-statements-Sum-if/m-p/836506#M1013812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I thought I tried that earlier, I guess I forgot something... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/plain.png" /&gt; &lt;/P&gt;&lt;P&gt;It works now, Thank you &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;sunindia&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 00:54:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-If-statements-Sum-if/m-p/836506#M1013812</guid>
      <dc:creator />
      <dc:date>2015-04-28T00:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Nested If statements  - Sum if</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-If-statements-Sum-if/m-p/836507#M1013813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem, we are here to help always &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;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 01:10:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-If-statements-Sum-if/m-p/836507#M1013813</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-28T01:10:20Z</dc:date>
    </item>
  </channel>
</rss>

