<?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 value for last date in that week in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/SUM-value-for-last-date-in-that-week/m-p/1796068#M62435</link>
    <description>&lt;P&gt;I have a table that contains both week and date values.&amp;nbsp; This table contains a measure called CREATED&lt;/P&gt;&lt;P&gt;I have a chart which trends the weekly CREATED volume, but i need this to only show the CREATED value for the last date within that week.&lt;/P&gt;&lt;P&gt;The data is as per the below example.&amp;nbsp; Instead of showing the sum total value for wc15th, which would be 147, i would like it to only show the value for the last day within that week, so 44.&amp;nbsp; For wc22nd, it should show 12&lt;/P&gt;&lt;P&gt;Any ideas?&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="SAM81_0-1617201395346.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/52179iE2537C7A9111CA4A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SAM81_0-1617201395346.png" alt="SAM81_0-1617201395346.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 31 Mar 2021 14:40:09 GMT</pubDate>
    <dc:creator>SAM81</dc:creator>
    <dc:date>2021-03-31T14:40:09Z</dc:date>
    <item>
      <title>SUM value for last date in that week</title>
      <link>https://community.qlik.com/t5/App-Development/SUM-value-for-last-date-in-that-week/m-p/1796068#M62435</link>
      <description>&lt;P&gt;I have a table that contains both week and date values.&amp;nbsp; This table contains a measure called CREATED&lt;/P&gt;&lt;P&gt;I have a chart which trends the weekly CREATED volume, but i need this to only show the CREATED value for the last date within that week.&lt;/P&gt;&lt;P&gt;The data is as per the below example.&amp;nbsp; Instead of showing the sum total value for wc15th, which would be 147, i would like it to only show the value for the last day within that week, so 44.&amp;nbsp; For wc22nd, it should show 12&lt;/P&gt;&lt;P&gt;Any ideas?&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="SAM81_0-1617201395346.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/52179iE2537C7A9111CA4A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SAM81_0-1617201395346.png" alt="SAM81_0-1617201395346.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 14:40:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SUM-value-for-last-date-in-that-week/m-p/1796068#M62435</guid>
      <dc:creator>SAM81</dc:creator>
      <dc:date>2021-03-31T14:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: SUM value for last date in that week</title>
      <link>https://community.qlik.com/t5/App-Development/SUM-value-for-last-date-in-that-week/m-p/1796333#M62458</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I'm not familiar with your data but if the table in the image shows the original script table&lt;BR /&gt;without any special manipulations maybe you can try to create a group by table on your&lt;BR /&gt;original table using script:&lt;/P&gt;&lt;P&gt;&lt;FONT face="ms pmincho,hiragino mincho pron" color="#000000"&gt;LOAD&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="ms pmincho,hiragino mincho pron" color="#000000"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WEEK_COMMENCING,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="ms pmincho,hiragino mincho pron" color="#000000"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;MAX(DATE)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="ms pmincho,hiragino mincho pron" color="#000000"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CREATED&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT face="ms pmincho,hiragino mincho pron" color="#000000"&gt;From {your table name}&amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="ms pmincho,hiragino mincho pron" color="#000000"&gt;Group By WEEK_COMMENCING, CREATED;&lt;/FONT&gt;&lt;FONT color="#FF00FF"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF00FF"&gt;&lt;FONT color="#000000"&gt;&lt;BR /&gt;Good luck!&lt;/FONT&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;</description>
      <pubDate>Thu, 01 Apr 2021 09:52:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SUM-value-for-last-date-in-that-week/m-p/1796333#M62458</guid>
      <dc:creator>shayd</dc:creator>
      <dc:date>2021-04-01T09:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: SUM value for last date in that week</title>
      <link>https://community.qlik.com/t5/App-Development/SUM-value-for-last-date-in-that-week/m-p/1797178#M64450</link>
      <description>&lt;P&gt;Thanks for the suggestion, but I couldn't quite get that to work as I needed.&amp;nbsp; I have found the following solueiton on a different thread:&lt;/P&gt;&lt;P&gt;max(aggr(sum(aggr(sum(CREATED),WEEK_COMMENCING,DATE)),DATE))&lt;/P&gt;&lt;P&gt;This almost works perfectly, but returns the max value for that week, not the max value for the max date in that week.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas on how I can amend?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 12:54:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SUM-value-for-last-date-in-that-week/m-p/1797178#M64450</guid>
      <dc:creator>SAM81</dc:creator>
      <dc:date>2021-04-06T12:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: SUM value for last date in that week</title>
      <link>https://community.qlik.com/t5/App-Development/SUM-value-for-last-date-in-that-week/m-p/1797514#M64480</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Try this expression :&amp;nbsp;FirstSortedValue(CREATED,-DATE)&lt;/P&gt;&lt;P&gt;Tested result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Quy_Nguyen_0-1617795524174.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/52522i4FA35FEDDAB311A2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Quy_Nguyen_0-1617795524174.png" alt="Quy_Nguyen_0-1617795524174.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 11:39:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SUM-value-for-last-date-in-that-week/m-p/1797514#M64480</guid>
      <dc:creator>Quy_Nguyen</dc:creator>
      <dc:date>2021-04-07T11:39:32Z</dc:date>
    </item>
  </channel>
</rss>

