<?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 FirstSortedValue as dimension field and min date problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-as-dimension-field-and-min-date-problem/m-p/786898#M537263</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with the following document:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a table for each item i have price and date of document fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to have in a a pivot chart for each item the last price in the filtered period and the first and last document date of this price&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to calculate the information directly on pivot chart without change script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using FirstSortedValue in dimension but i have a problem with the calculation of the first date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example for item 005 last price is 0.94, last doc date for this price is 04/11/2014 and fist date for this price should be 15/10/2013.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using MIN(DATA_RIF_DOC) for calculation the first date I get 07/01/2009 but it is wrong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attach a sample document&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Nov 2014 06:44:20 GMT</pubDate>
    <dc:creator>paolojolly</dc:creator>
    <dc:date>2014-11-07T06:44:20Z</dc:date>
    <item>
      <title>FirstSortedValue as dimension field and min date problem</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-as-dimension-field-and-min-date-problem/m-p/786898#M537263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with the following document:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a table for each item i have price and date of document fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to have in a a pivot chart for each item the last price in the filtered period and the first and last document date of this price&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to calculate the information directly on pivot chart without change script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using FirstSortedValue in dimension but i have a problem with the calculation of the first date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example for item 005 last price is 0.94, last doc date for this price is 04/11/2014 and fist date for this price should be 15/10/2013.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using MIN(DATA_RIF_DOC) for calculation the first date I get 07/01/2009 but it is wrong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attach a sample document&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 06:44:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-as-dimension-field-and-min-date-problem/m-p/786898#M537263</guid>
      <dc:creator>paolojolly</dc:creator>
      <dc:date>2014-11-07T06:44:20Z</dc:date>
    </item>
  </channel>
</rss>

