<?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: Summing with if conditions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Summing-with-if-conditions/m-p/1736216#M721827</link>
    <description>&lt;P&gt;Would you be able to share sample?&lt;/P&gt;</description>
    <pubDate>Sun, 16 Aug 2020 18:26:08 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2020-08-16T18:26:08Z</dc:date>
    <item>
      <title>Summing with if conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Summing-with-if-conditions/m-p/1736069#M721823</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I was hoping someone would help me with a challenge I am facing.&lt;/P&gt;&lt;P&gt;I am trying to sum&amp;nbsp;ActualVolume for Where&amp;nbsp;_Calendar_RollMonthSort is not 13 and&amp;nbsp;CalendarYear&amp;nbsp; is not 2019 and right(Calendar_RollMonthName,1) is not 'A'.&lt;/P&gt;&lt;P&gt;Example If([_Calendar_RollMonthSort] &amp;lt;&amp;gt; '13' AND CalendarYear &amp;lt;&amp;gt; 2019 AND right(Calendar_RollMonthName,1) &amp;lt;&amp;gt; 'A', SUM({&amp;lt;CalendarCurrRolling13Mo={1}&amp;gt;}ActualVolume)/1000)&lt;/P&gt;&lt;P&gt;However it is not working as planned as it looks at&amp;nbsp;[_Calendar_RollMonthSort] &amp;lt;&amp;gt; '13'&amp;nbsp; and excludes both records. Then the next part&amp;nbsp; "CalendarYear &amp;lt;&amp;gt; 2019 " excluded all with the year 2019 ect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="qlik exp1.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/39065i5513987C152D3866/image-size/large?v=v2&amp;amp;px=999" role="button" title="qlik exp1.PNG" alt="qlik exp1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need it to only exclude if all conditions are true.&lt;/P&gt;&lt;P&gt;Your help would be appreciated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summing-with-if-conditions/m-p/1736069#M721823</guid>
      <dc:creator>darrinturner</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Summing with if conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Summing-with-if-conditions/m-p/1736072#M721824</link>
      <description>&lt;P&gt;I have also tried using:&amp;nbsp;SUM({&amp;lt;CalendarCurrRolling13Mo={1}, _Calendar_RollMonthSort] -= {'13'}, CalendarYear -= {'2019'} , Right([_Calendar_RollMonthName],1) -= {'A'}&amp;gt;} _ActualVolume)/1000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With no luck&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 22:23:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summing-with-if-conditions/m-p/1736072#M721824</guid>
      <dc:creator>darrinturner</dc:creator>
      <dc:date>2020-08-14T22:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Summing with if conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Summing-with-if-conditions/m-p/1736073#M721825</link>
      <description>&lt;P&gt;try below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;SUM({&amp;lt;CalendarCurrRolling13Mo={1},[_Calendar_RollMonthSort]-={'13'},CalendarYear-={2019} , Calendar_RollMonthName={"=right(Calendar_RollMonthName,1) &amp;lt;&amp;gt; 'A'"}&amp;gt;}ActualVolume)/1000&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 22:35:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summing-with-if-conditions/m-p/1736073#M721825</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-08-14T22:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Summing with if conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Summing-with-if-conditions/m-p/1736076#M721826</link>
      <description>&lt;P&gt;Kush, thank you for the code. However I loos records I don't want to lose.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the image below, I have highlighted the record I actually want to exclude:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="qlik exp2.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/39066i9FFEBA6AE549A2EB/image-size/large?v=v2&amp;amp;px=999" role="button" title="qlik exp2.PNG" alt="qlik exp2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 22:50:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summing-with-if-conditions/m-p/1736076#M721826</guid>
      <dc:creator>darrinturner</dc:creator>
      <dc:date>2020-08-14T22:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Summing with if conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Summing-with-if-conditions/m-p/1736216#M721827</link>
      <description>&lt;P&gt;Would you be able to share sample?&lt;/P&gt;</description>
      <pubDate>Sun, 16 Aug 2020 18:26:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summing-with-if-conditions/m-p/1736216#M721827</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-08-16T18:26:08Z</dc:date>
    </item>
  </channel>
</rss>

