<?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: Expression to only sum if in current year in Management &amp; Governance</title>
    <link>https://community.qlik.com/t5/Management-Governance/Expression-to-only-sum-if-in-current-year/m-p/1790988#M19088</link>
    <description>&lt;P&gt;ugh, of course! thanks&lt;/P&gt;</description>
    <pubDate>Fri, 12 Mar 2021 15:06:38 GMT</pubDate>
    <dc:creator>anthony-gb</dc:creator>
    <dc:date>2021-03-12T15:06:38Z</dc:date>
    <item>
      <title>Expression to only sum if in current year</title>
      <link>https://community.qlik.com/t5/Management-Governance/Expression-to-only-sum-if-in-current-year/m-p/1790312#M19086</link>
      <description>&lt;P&gt;I am trying to implement an expression to limit the amount only where the due_date is in the current year. I also only want to sum amounts &amp;gt; 0&lt;/P&gt;&lt;P&gt;I have tried many variations of this eg.&lt;/P&gt;&lt;P&gt;if(year(due_date) = year(today()) and amount &amp;gt; 0, sum(amount))&lt;/P&gt;&lt;P&gt;any help would be appreciated&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:27:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Expression-to-only-sum-if-in-current-year/m-p/1790312#M19086</guid>
      <dc:creator>anthony-gb</dc:creator>
      <dc:date>2024-11-16T00:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to only sum if in current year</title>
      <link>https://community.qlik.com/t5/Management-Governance/Expression-to-only-sum-if-in-current-year/m-p/1790532#M19087</link>
      <description>&lt;P&gt;You've got the right syntax, just the wrong way around. Your conditions go inside the sum rather than vice versa, since you&amp;nbsp; need them re-evaluated for each row.&lt;/P&gt;&lt;P&gt;Sum(If(Year(due_date)=year(Today()) AND amount&amp;gt;0,amount)&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 13:49:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Expression-to-only-sum-if-in-current-year/m-p/1790532#M19087</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2021-03-11T13:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to only sum if in current year</title>
      <link>https://community.qlik.com/t5/Management-Governance/Expression-to-only-sum-if-in-current-year/m-p/1790988#M19088</link>
      <description>&lt;P&gt;ugh, of course! thanks&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 15:06:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Expression-to-only-sum-if-in-current-year/m-p/1790988#M19088</guid>
      <dc:creator>anthony-gb</dc:creator>
      <dc:date>2021-03-12T15:06:38Z</dc:date>
    </item>
  </channel>
</rss>

