<?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: Only Last Values (by time) on a used-based selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Only-Last-Values-by-time-on-a-used-based-selection/m-p/1291176#M517265</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;Dear Sunny,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;thank you for your kind answer. Your expression is really cool, it is actually good but it seems not to work in my own dashboard.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;I am currently using this one:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;SPAN style="color: #1f497d; font-size: 12pt; font-family: Calibri;"&gt;=sum(aggr(FirstSortedValue(aggr(sum(Costs),Project,Date),-aggr(Date,Project,Date)),Project))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;this expression works fine as well, but I am not able to make it work for the previous year. Do you have any suggestion to make?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;Many Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;Best&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;M&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Mar 2017 18:15:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-03-15T18:15:49Z</dc:date>
    <item>
      <title>Only Last Values (by time) on a used-based selection</title>
      <link>https://community.qlik.com/t5/QlikView/Only-Last-Values-by-time-on-a-used-based-selection/m-p/1291174#M517263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a data set with a structure like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date, Project, Costs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201601, A, 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201601, B, 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201602, A, 5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201603, B, 9&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am requested to sum the cost considering only the last cost value by time for each project, considering the selection made by the user.&lt;/P&gt;&lt;P&gt;For instance, if the user selects 201601 + 201602, the proper sum result would be 8 (5 for A, 3 for B, not considering the cost value for A on jan).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea on how to handle this stuff?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you on advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matteo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 09:54:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-Last-Values-by-time-on-a-used-based-selection/m-p/1291174#M517263</guid>
      <dc:creator />
      <dc:date>2017-03-15T09:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Only Last Values (by time) on a used-based selection</title>
      <link>https://community.qlik.com/t5/QlikView/Only-Last-Values-by-time-on-a-used-based-selection/m-p/1291175#M517264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(FirstSortedValue(Costs, -Date), Project))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE: Sample attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 16:28:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-Last-Values-by-time-on-a-used-based-selection/m-p/1291175#M517264</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-15T16:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Only Last Values (by time) on a used-based selection</title>
      <link>https://community.qlik.com/t5/QlikView/Only-Last-Values-by-time-on-a-used-based-selection/m-p/1291176#M517265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;Dear Sunny,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;thank you for your kind answer. Your expression is really cool, it is actually good but it seems not to work in my own dashboard.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;I am currently using this one:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;SPAN style="color: #1f497d; font-size: 12pt; font-family: Calibri;"&gt;=sum(aggr(FirstSortedValue(aggr(sum(Costs),Project,Date),-aggr(Date,Project,Date)),Project))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;this expression works fine as well, but I am not able to make it work for the previous year. Do you have any suggestion to make?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;Many Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;Best&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;M&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 18:15:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-Last-Values-by-time-on-a-used-based-selection/m-p/1291176#M517265</guid>
      <dc:creator />
      <dc:date>2017-03-15T18:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: Only Last Values (by time) on a used-based selection</title>
      <link>https://community.qlik.com/t5/QlikView/Only-Last-Values-by-time-on-a-used-based-selection/m-p/1291177#M517266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Previous Year?? Where did that come from? Is this a new requirement from the original post? Would you be able to update the post and provide the updated desired output to help you better?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 18:18:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-Last-Values-by-time-on-a-used-based-selection/m-p/1291177#M517266</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-15T18:18:37Z</dc:date>
    </item>
  </channel>
</rss>

