<?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: Using FirstSortedValue dimension field and min date problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-FirstSortedValue-dimension-field-and-min-date-problem/m-p/778257#M473418</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There will lot of issues if you use FirstSortedValue(), if for the same data and item if you same value twice then you will get null value, also using Aggr() has lot of performance issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is possible but bit difficult.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Nov 2014 14:44:38 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2014-11-06T14:44:38Z</dc:date>
    <item>
      <title>Using FirstSortedValue dimension field and min date problem</title>
      <link>https://community.qlik.com/t5/QlikView/Using-FirstSortedValue-dimension-field-and-min-date-problem/m-p/778254#M473415</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 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>Thu, 06 Nov 2014 08:03:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-FirstSortedValue-dimension-field-and-min-date-problem/m-p/778254#M473415</guid>
      <dc:creator>paolojolly</dc:creator>
      <dc:date>2014-11-06T08:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using FirstSortedValue dimension field and min date problem</title>
      <link>https://community.qlik.com/t5/QlikView/Using-FirstSortedValue-dimension-field-and-min-date-problem/m-p/778255#M473416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;LOAD ITEM, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; W_PRZ_LIS, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATA_RIF_DOC, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATA_INI_RIGALIS&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is Sheet1$);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;If(Peek(ITEM) &amp;lt;&amp;gt; ITEM, 1, 0) AS Flag&lt;/P&gt;&lt;P&gt;RESIDENT Temp&lt;/P&gt;&lt;P&gt;ORDER BY ITEM, DATA_RIF_DOC DESC;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chart : Straight Table&lt;/P&gt;&lt;P&gt;Dimension: ITEM, W_PRZ_LIS&lt;/P&gt;&lt;P&gt;Expression: &lt;/P&gt;&lt;P&gt;Min:&lt;/P&gt;&lt;P&gt;MIN({&amp;lt;Flag={1}&amp;gt;}DATA_RIF_DOC) &lt;/P&gt;&lt;P&gt;Max:&lt;/P&gt;&lt;P&gt;MAX({&amp;lt;Flag={1}&amp;gt;}DATA_RIF_DOC) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2014 09:22:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-FirstSortedValue-dimension-field-and-min-date-problem/m-p/778255#M473416</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-11-06T09:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using FirstSortedValue dimension field and min date problem</title>
      <link>https://community.qlik.com/t5/QlikView/Using-FirstSortedValue-dimension-field-and-min-date-problem/m-p/778256#M473417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, But I need to calculate &lt;SPAN style="font-size: 13.3333339691162px;"&gt;the information directly on pivot chart without using the script. do you think is possible?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2014 09:47:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-FirstSortedValue-dimension-field-and-min-date-problem/m-p/778256#M473417</guid>
      <dc:creator>paolojolly</dc:creator>
      <dc:date>2014-11-06T09:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using FirstSortedValue dimension field and min date problem</title>
      <link>https://community.qlik.com/t5/QlikView/Using-FirstSortedValue-dimension-field-and-min-date-problem/m-p/778257#M473418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There will lot of issues if you use FirstSortedValue(), if for the same data and item if you same value twice then you will get null value, also using Aggr() has lot of performance issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is possible but bit difficult.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2014 14:44:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-FirstSortedValue-dimension-field-and-min-date-problem/m-p/778257#M473418</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-11-06T14:44:38Z</dc:date>
    </item>
  </channel>
</rss>

