<?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: sum for min date in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/sum-for-min-date/m-p/1930229#M76607</link>
    <description>&lt;P&gt;I loaded it piecemeal through a script. Anyway, thanks a lot for the answer!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wrote the data upload part with the minimum date, and then used join to attach the corresponding payment amount by date and user id&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;final:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;load&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;user_id,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;timestamp(min(payment_date),'YYYY-MM-DD hh:mm:ss') as min_date&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;resident ec_users&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;group By&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;user_id;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;//join&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;left join (final)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;load&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;amount,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;payment_date as min_date,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;user_id&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;Resident ec_users;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 13 May 2022 08:22:54 GMT</pubDate>
    <dc:creator>ZimaBlue</dc:creator>
    <dc:date>2022-05-13T08:22:54Z</dc:date>
    <item>
      <title>sum for min date</title>
      <link>https://community.qlik.com/t5/App-Development/sum-for-min-date/m-p/1929981#M76581</link>
      <description>&lt;P&gt;Hello!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to make this very simple action work in qlik sense (table chart)?&lt;/P&gt;
&lt;P&gt;I try:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color="#008080"&gt;&amp;nbsp;=sum({&amp;lt;payment_date = {"Min([payment_date])"} &amp;gt;} amount)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;but it doesnt work.&amp;nbsp;I also tried&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color="#008080"&gt;=sum({&amp;lt;payment_date = {'$(=Min([payment_date]))'} &amp;gt;} amount)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;but it's also useless&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 17:37:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/sum-for-min-date/m-p/1929981#M76581</guid>
      <dc:creator>ZimaBlue</dc:creator>
      <dc:date>2022-05-12T17:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: sum for min date</title>
      <link>https://community.qlik.com/t5/App-Development/sum-for-min-date/m-p/1930056#M76593</link>
      <description>&lt;P&gt;min results in a number, so you need to convert it to date:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;=sum({&amp;lt;payment_date = {'$(=date(Min([payment_date])))'} &amp;gt;} amount)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 20:30:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/sum-for-min-date/m-p/1930056#M76593</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2022-05-12T20:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: sum for min date</title>
      <link>https://community.qlik.com/t5/App-Development/sum-for-min-date/m-p/1930057#M76594</link>
      <description>&lt;P&gt;but its not that simple.&amp;nbsp; if this is in a table with payment date as a dimension it will not work as the value of payment date becomes the min.&amp;nbsp; but if this is just a number that stands on its own like a kpi then it could work&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 20:31:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/sum-for-min-date/m-p/1930057#M76594</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2022-05-12T20:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: sum for min date</title>
      <link>https://community.qlik.com/t5/App-Development/sum-for-min-date/m-p/1930163#M76601</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;
&lt;P&gt;Why can't I display this in a table? I output as measurements: the user id, the minimum date, and I want to output by this minimum date the corresponding payment amount, which is only one. In this case, how do I get such an array of data?&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 06:28:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/sum-for-min-date/m-p/1930163#M76601</guid>
      <dc:creator>ZimaBlue</dc:creator>
      <dc:date>2022-05-13T06:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: sum for min date</title>
      <link>https://community.qlik.com/t5/App-Development/sum-for-min-date/m-p/1930229#M76607</link>
      <description>&lt;P&gt;I loaded it piecemeal through a script. Anyway, thanks a lot for the answer!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wrote the data upload part with the minimum date, and then used join to attach the corresponding payment amount by date and user id&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;final:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;load&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;user_id,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;timestamp(min(payment_date),'YYYY-MM-DD hh:mm:ss') as min_date&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;resident ec_users&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;group By&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;user_id;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;//join&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;left join (final)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;load&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;amount,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;payment_date as min_date,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;user_id&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;Resident ec_users;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 08:22:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/sum-for-min-date/m-p/1930229#M76607</guid>
      <dc:creator>ZimaBlue</dc:creator>
      <dc:date>2022-05-13T08:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: sum for min date</title>
      <link>https://community.qlik.com/t5/App-Development/sum-for-min-date/m-p/1930231#M76608</link>
      <description>&lt;P&gt;Doing this in set analysis of the Measure is not possible,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since each UserID&amp;nbsp; will have a different min(date) and &lt;STRONG&gt;{"Min([payment_date])"}&amp;nbsp; &lt;/STRONG&gt;i&lt;STRONG&gt;s evaluated once per chart and not once per dimension value&lt;/STRONG&gt; ; so this will only return&lt;FONT color="#FF6600"&gt;&lt;U&gt;&lt;STRONG&gt; ONE min value&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;What you can do is use a calculated dimension&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Dimension&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;=UserID&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;=Aggr(if(payment_date=min(payment_date),date),UserId)&amp;nbsp; &amp;lt;&amp;lt;--uncheck include null values for this dimension&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Measure&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;&amp;nbsp;=sum(amount)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 08:27:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/sum-for-min-date/m-p/1930231#M76608</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-05-13T08:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: sum for min date</title>
      <link>https://community.qlik.com/t5/App-Development/sum-for-min-date/m-p/1933079#M76863</link>
      <description>&lt;P&gt;thank a lot for your reply!&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 13:23:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/sum-for-min-date/m-p/1933079#M76863</guid>
      <dc:creator>ZimaBlue</dc:creator>
      <dc:date>2022-05-19T13:23:42Z</dc:date>
    </item>
  </channel>
</rss>

