<?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 AGGR does not work with the filter in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/AGGR-does-not-work-with-the-filter/m-p/2026364#M84615</link>
    <description>&lt;P&gt;Hello.&lt;/P&gt;
&lt;P&gt;I have the following fields: &lt;FONT face="courier new,courier" color="#999999"&gt;user_id, feedback date, payment date, payment amount&lt;/FONT&gt;. There may be several feedbacks per user, so the payment amounts may be duplicated. I use &lt;FONT face="courier new,courier" color="#0000FF"&gt;AGGR&lt;/FONT&gt; to avoid summing duplicate rows and count only unique ones.&lt;/P&gt;
&lt;P&gt;I use the following formula to calculate the amount of payments for each review 7 days before it:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color="#0000FF"&gt;SUM({1 &amp;lt;payment_date={"=payment_date&amp;gt;=week_before_n and payment_date&amp;lt;=date_tech_2"}&amp;gt;} AGGR(SUM({1 &amp;lt;payment_date={"=payment_date&amp;gt;=week_before_n and payment_date&amp;lt;=date_tech_2"}, user_id=P(user_id), payment_id=P(payment_id)&amp;gt;} &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#0000FF"&gt;DISTINCT sum_payments), &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#0000FF"&gt;payment_date, user_id, payment_id))&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;This formula works correctly, but the problem is that as soon as I filter a specific &lt;FONT face="courier new,courier" color="#0000FF"&gt;user_id&lt;/FONT&gt;, pivot table stops displaying anything at all and I only see "-" instead of the sum amount. How to make it work, including with any filter?&lt;/P&gt;</description>
    <pubDate>Mon, 16 Jan 2023 23:28:02 GMT</pubDate>
    <dc:creator>ZimaBlue</dc:creator>
    <dc:date>2023-01-16T23:28:02Z</dc:date>
    <item>
      <title>AGGR does not work with the filter</title>
      <link>https://community.qlik.com/t5/App-Development/AGGR-does-not-work-with-the-filter/m-p/2026364#M84615</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;
&lt;P&gt;I have the following fields: &lt;FONT face="courier new,courier" color="#999999"&gt;user_id, feedback date, payment date, payment amount&lt;/FONT&gt;. There may be several feedbacks per user, so the payment amounts may be duplicated. I use &lt;FONT face="courier new,courier" color="#0000FF"&gt;AGGR&lt;/FONT&gt; to avoid summing duplicate rows and count only unique ones.&lt;/P&gt;
&lt;P&gt;I use the following formula to calculate the amount of payments for each review 7 days before it:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color="#0000FF"&gt;SUM({1 &amp;lt;payment_date={"=payment_date&amp;gt;=week_before_n and payment_date&amp;lt;=date_tech_2"}&amp;gt;} AGGR(SUM({1 &amp;lt;payment_date={"=payment_date&amp;gt;=week_before_n and payment_date&amp;lt;=date_tech_2"}, user_id=P(user_id), payment_id=P(payment_id)&amp;gt;} &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#0000FF"&gt;DISTINCT sum_payments), &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#0000FF"&gt;payment_date, user_id, payment_id))&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;This formula works correctly, but the problem is that as soon as I filter a specific &lt;FONT face="courier new,courier" color="#0000FF"&gt;user_id&lt;/FONT&gt;, pivot table stops displaying anything at all and I only see "-" instead of the sum amount. How to make it work, including with any filter?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 23:28:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/AGGR-does-not-work-with-the-filter/m-p/2026364#M84615</guid>
      <dc:creator>ZimaBlue</dc:creator>
      <dc:date>2023-01-16T23:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR does not work with the filter</title>
      <link>https://community.qlik.com/t5/App-Development/AGGR-does-not-work-with-the-filter/m-p/2027023#M84651</link>
      <description>&lt;P&gt;Your expression is set to consider P(user_id)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color="#000000"&gt;=SUM({1 &amp;lt;payment_date={"=payment_date&amp;gt;=week_before_n and payment_date&amp;lt;=date_tech_2"}, &lt;STRIKE&gt;&lt;STRONG&gt;&lt;FONT color="#FF6600"&gt;user_id=P(user_id)&lt;/FONT&gt;&lt;/STRONG&gt;, payment_id=P(payment_id)&lt;/STRIKE&gt;&amp;gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#000000"&gt;DISTINCT sum_payments)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color="#000000"&gt;Can you post some sample data?&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 09:00:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/AGGR-does-not-work-with-the-filter/m-p/2027023#M84651</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2023-01-18T09:00:56Z</dc:date>
    </item>
  </channel>
</rss>

