<?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: Firstsorted Value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Firstsorted-Value/m-p/24738#M4098</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count(Aggr(If(Value = FirstSortedValue(TOTAL &amp;lt;Day&amp;gt; Value,ID), 1), Day, Value))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Apr 2018 17:01:53 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-04-26T17:01:53Z</dc:date>
    <item>
      <title>Firstsorted Value</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsorted-Value/m-p/24737#M4097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a question regarding firstsortedvalue, which is driving me nuts &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I prepared an example: I have 2 different Values and an Id. I want to count the Event with the lowest Index. But whatever i try, it always shows me both values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My exprected Result is:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Header 1&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Header 2&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Value&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Count&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Test1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2 &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see attached file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is just some sample data i created, cause i can't share my real data. The real data is a list of events for each date. I want to count for each day what event occured first &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Fabian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 16:58:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsorted-Value/m-p/24737#M4097</guid>
      <dc:creator>fheidenstecker</dc:creator>
      <dc:date>2018-04-26T16:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsorted Value</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsorted-Value/m-p/24738#M4098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count(Aggr(If(Value = FirstSortedValue(TOTAL &amp;lt;Day&amp;gt; Value,ID), 1), Day, Value))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 17:01:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsorted-Value/m-p/24738#M4098</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-04-26T17:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsorted Value</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsorted-Value/m-p/24739#M4099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow, thanks for the quick hint!&lt;/P&gt;&lt;P&gt;It works, and also for my real life Data!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need some time to think about the nested use of if and aggr &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Great!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 17:07:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsorted-Value/m-p/24739#M4099</guid>
      <dc:creator>fheidenstecker</dc:creator>
      <dc:date>2018-04-26T17:07:27Z</dc:date>
    </item>
  </channel>
</rss>

