<?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: Re: FirstSortedValue issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-issue/m-p/721690#M259110</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Aug 2014 13:30:03 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-08-21T13:30:03Z</dc:date>
    <item>
      <title>FirstSortedValue issue</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-issue/m-p/721682#M259102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone! I would like to get the first product sold to each customer , based on the date of the transaction. The problem is that when more than one products have been sold to a customer on the same date, function FirstSortedValue(ItemCode,DateT) returns null. In that case, I would like to get all the products.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 10:41:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-issue/m-p/721682#M259102</guid>
      <dc:creator />
      <dc:date>2014-08-21T10:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue issue</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-issue/m-p/721683#M259103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Something like: FirstSortedValue(&lt;STRONG&gt;aggr(concat(&lt;/STRONG&gt;ItemCode&lt;STRONG&gt;,', ')DateT,CustomerID)&lt;/STRONG&gt;,DateT)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 11:21:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-issue/m-p/721683#M259103</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-08-21T11:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue issue</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-issue/m-p/721684#M259104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately, this doesn't work....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 11:49:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-issue/m-p/721684#M259104</guid>
      <dc:creator />
      <dc:date>2014-08-21T11:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue issue</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-issue/m-p/721685#M259105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please post an example document.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 12:00:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-issue/m-p/721685#M259105</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-08-21T12:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Re: FirstSortedValue issue</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-issue/m-p/721686#M259106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you can see from the attachment, FirstSortedValue doesn't show records for customer James as he bought 2 products the first date (day 2). I would like to get two records, showing both products for customer James.&lt;/P&gt;&lt;P&gt;Thank you in advance for your help,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 12:07:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-issue/m-p/721686#M259106</guid>
      <dc:creator />
      <dc:date>2014-08-21T12:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue issue</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-issue/m-p/721687#M259107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FirstSortedValue(aggr(Concat(ItemCode,'|'),CustomerCode,DateT),aggr(DateT,DateT,CustomerCode))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 12:22:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-issue/m-p/721687#M259107</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-08-21T12:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Re: FirstSortedValue issue</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-issue/m-p/721688#M259108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Gysbert, but what I would like is for Customer James to get two records instead of concatenated the two product codes on one record. The reason for that is that I want to count how many customers bought each product for the first time. Hope I was descriptive enough &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 12:43:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-issue/m-p/721688#M259108</guid>
      <dc:creator />
      <dc:date>2014-08-21T12:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Re: FirstSortedValue issue</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-issue/m-p/721689#M259109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That cannot be done with expressions alone. You'll have add some things in the script. Join the original table with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;join(Original)&lt;/P&gt;&lt;P&gt;Load CustomerCode, min(DateT) as DateT, 1 as Flag&lt;/P&gt;&lt;P&gt;resident Original&lt;/P&gt;&lt;P&gt;Group By CustomerCode;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can use as expression &lt;EM&gt;only({&amp;lt;Flag={1}&amp;gt;}ItemCode)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 12:49:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-issue/m-p/721689#M259109</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-08-21T12:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Re: FirstSortedValue issue</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-issue/m-p/721690#M259110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 13:30:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-issue/m-p/721690#M259110</guid>
      <dc:creator />
      <dc:date>2014-08-21T13:30:03Z</dc:date>
    </item>
  </channel>
</rss>

