<?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 Sum not aggregating over mm-yyyy with conditional expression for &amp;gt; one year in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Sum-not-aggregating-over-mm-yyyy-with-conditional-expression-for/m-p/1730598#M55706</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an issue where my sum is not aggregating correctly over my dimension. The sum is made over the exact date, giving me multiple instances of each month instead of aggregating over month-year&amp;nbsp; - see picture below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DawidDaw_0-1595586579269.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/38021i8B81E97ADEAD29C3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DawidDaw_0-1595586579269.png" alt="DawidDaw_0-1595586579269.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is caused by my condition in the dimension:&lt;/P&gt;&lt;P&gt;=if(interval(line_invoice_due_date-today(),'d') &amp;gt;= 360,'Due in more than 360 days',&lt;BR /&gt;if(interval(line_invoice_due_date-today(),'d') &amp;lt;= -360,'Late more than 360 days',&lt;BR /&gt;date(line_invoice_due_date,'MM-YYYY')))&lt;/P&gt;&lt;P&gt;For the measure, I simply sum(line_amount). Everything is in the same table and the lines are unique.&lt;/P&gt;&lt;P&gt;It works fine without the condition but it goes back too much into the past and future, where we only care about rolling year + and year -.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea how to fix this?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jul 2020 10:32:26 GMT</pubDate>
    <dc:creator>DawidDaw</dc:creator>
    <dc:date>2020-07-24T10:32:26Z</dc:date>
    <item>
      <title>Sum not aggregating over mm-yyyy with conditional expression for &gt; one year</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-not-aggregating-over-mm-yyyy-with-conditional-expression-for/m-p/1730598#M55706</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an issue where my sum is not aggregating correctly over my dimension. The sum is made over the exact date, giving me multiple instances of each month instead of aggregating over month-year&amp;nbsp; - see picture below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DawidDaw_0-1595586579269.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/38021i8B81E97ADEAD29C3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DawidDaw_0-1595586579269.png" alt="DawidDaw_0-1595586579269.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is caused by my condition in the dimension:&lt;/P&gt;&lt;P&gt;=if(interval(line_invoice_due_date-today(),'d') &amp;gt;= 360,'Due in more than 360 days',&lt;BR /&gt;if(interval(line_invoice_due_date-today(),'d') &amp;lt;= -360,'Late more than 360 days',&lt;BR /&gt;date(line_invoice_due_date,'MM-YYYY')))&lt;/P&gt;&lt;P&gt;For the measure, I simply sum(line_amount). Everything is in the same table and the lines are unique.&lt;/P&gt;&lt;P&gt;It works fine without the condition but it goes back too much into the past and future, where we only care about rolling year + and year -.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea how to fix this?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 10:32:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-not-aggregating-over-mm-yyyy-with-conditional-expression-for/m-p/1730598#M55706</guid>
      <dc:creator>DawidDaw</dc:creator>
      <dc:date>2020-07-24T10:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Sum not aggregating over mm-yyyy with conditional expression for &gt; one year</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-not-aggregating-over-mm-yyyy-with-conditional-expression-for/m-p/1730960#M55761</link>
      <description>&lt;P&gt;Bump&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2020 08:13:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-not-aggregating-over-mm-yyyy-with-conditional-expression-for/m-p/1730960#M55761</guid>
      <dc:creator>DawidDaw</dc:creator>
      <dc:date>2020-07-27T08:13:37Z</dc:date>
    </item>
  </channel>
</rss>

