<?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: First Sorted Value returning NULL in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/First-Sorted-Value-returning-NULL/m-p/1035638#M349134</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be use DISTINCT?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;FirstSortedValue(&lt;STRONG&gt;DISTINCT&lt;/STRONG&gt; Value - (Date * 10000 + Value))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that doesn't work, would you be able to share how your data look like (where it doesn't work)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Apr 2016 19:01:43 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-04-14T19:01:43Z</dc:date>
    <item>
      <title>First Sorted Value returning NULL</title>
      <link>https://community.qlik.com/t5/QlikView/First-Sorted-Value-returning-NULL/m-p/1035637#M349133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the user's help Sunny, function firstsortedvalue takes the highest value of the highest date that occurs on a table, but many times the value of the expression returns null, the model presented in the previous question I had only integer values, but I own decimals values, there is a problem in function to decimal values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FirstSortedValue (Value - (Date * 10000 + Value))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 18:58:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-Sorted-Value-returning-NULL/m-p/1035637#M349133</guid>
      <dc:creator />
      <dc:date>2016-04-14T18:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: First Sorted Value returning NULL</title>
      <link>https://community.qlik.com/t5/QlikView/First-Sorted-Value-returning-NULL/m-p/1035638#M349134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be use DISTINCT?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;FirstSortedValue(&lt;STRONG&gt;DISTINCT&lt;/STRONG&gt; Value - (Date * 10000 + Value))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that doesn't work, would you be able to share how your data look like (where it doesn't work)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 19:01:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-Sorted-Value-returning-NULL/m-p/1035638#M349134</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-14T19:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: First Sorted Value returning NULL</title>
      <link>https://community.qlik.com/t5/QlikView/First-Sorted-Value-returning-NULL/m-p/1035639#M349135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One reason this isn't working could be the fact the Date is not read as Date. Make sure Date is a dual field with numeric value. Check these links:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4394"&gt;Dates in Set Analysis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2954"&gt;Why don’t my dates work?&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 19:02:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-Sorted-Value-returning-NULL/m-p/1035639#M349135</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-14T19:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: First Sorted Value returning NULL</title>
      <link>https://community.qlik.com/t5/QlikView/First-Sorted-Value-returning-NULL/m-p/1035640#M349136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what's the difference using distinct in this function?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 19:10:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-Sorted-Value-returning-NULL/m-p/1035640#M349136</guid>
      <dc:creator />
      <dc:date>2016-04-14T19:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: First Sorted Value returning NULL</title>
      <link>https://community.qlik.com/t5/QlikView/First-Sorted-Value-returning-NULL/m-p/1035641#M349137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As this has decimal values, it might be finding difficult to choose between two very close values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example: 10.99999999999 and &lt;SPAN style="font-size: 13.3333px;"&gt;10.99999999998. Distinct just help the expression choose one of them randomly.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 19:14:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-Sorted-Value-returning-NULL/m-p/1035641#M349137</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-14T19:14:06Z</dc:date>
    </item>
  </channel>
</rss>

