<?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 Using FirstSortedValue in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-FirstSortedValue-in-Set-Analysis/m-p/382428#M491081</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a QVW of branch visits, where each branch is scored. Some branches are visited more than once (follow up).&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to report on these follow up visits, and the score achieved in each visit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table should seperately list each branch by:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Dimensions:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SBU, Storename, Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Expressions:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Points scored (PS) previously, Points available (PA) previously, Previous score (PS / PA %) as well as;&lt;/P&gt;&lt;P&gt;Points scored (PS) latest, Points available (PA) latest, Latest score (PS / PA %)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Previous lookup works fine.&amp;nbsp; I am having trouble getting the Latest lookups right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried aggr and set analysis using FirstSortedValue, but cannot seem to get it right - at best it displays both old and new scores, instead of only the latest scores.&amp;nbsp; The latest visit is also not neccessarily on the global Max date, hence I used FirstSortedValue to find it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The selection also needs to stay dynamic, so a script solution will not assist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The file is attached; any help will be much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Aug 2012 13:49:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-08-30T13:49:46Z</dc:date>
    <item>
      <title>Using FirstSortedValue in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-FirstSortedValue-in-Set-Analysis/m-p/382428#M491081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a QVW of branch visits, where each branch is scored. Some branches are visited more than once (follow up).&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to report on these follow up visits, and the score achieved in each visit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table should seperately list each branch by:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Dimensions:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SBU, Storename, Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Expressions:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Points scored (PS) previously, Points available (PA) previously, Previous score (PS / PA %) as well as;&lt;/P&gt;&lt;P&gt;Points scored (PS) latest, Points available (PA) latest, Latest score (PS / PA %)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Previous lookup works fine.&amp;nbsp; I am having trouble getting the Latest lookups right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried aggr and set analysis using FirstSortedValue, but cannot seem to get it right - at best it displays both old and new scores, instead of only the latest scores.&amp;nbsp; The latest visit is also not neccessarily on the global Max date, hence I used FirstSortedValue to find it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The selection also needs to stay dynamic, so a script solution will not assist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The file is attached; any help will be much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 13:49:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-FirstSortedValue-in-Set-Analysis/m-p/382428#M491081</guid>
      <dc:creator />
      <dc:date>2012-08-30T13:49:46Z</dc:date>
    </item>
  </channel>
</rss>

