<?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: Issue on First Sorted Value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Issue-on-First-Sorted-Value/m-p/961146#M329857</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suggest that you post your application or a representative sample. That way you will get more accurate and relevant help...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Aug 2015 06:57:22 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2015-08-20T06:57:22Z</dc:date>
    <item>
      <title>Issue on First Sorted Value</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-on-First-Sorted-Value/m-p/961145#M329856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear experts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having issue on the function &lt;SPAN style="font-size: 13.3333330154419px;"&gt;firstsortedvalue. I am using the below expression, where it is trying to list the Item with least value sold. I am seeing there are many items with the same value and hence it shows NULL. Is there a way to pick up one from the List? How do I find out Only one amongst the whole list. I tried using Rank function, but it does not give me anything.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;firstsortedvalue({$&amp;lt;Inv_YearMonth_Num= {$(=max(Inv_YearMonth_Num))}&amp;gt;}[Item Description],QtySold)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate a quick reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Bimala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 06:51:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-on-First-Sorted-Value/m-p/961145#M329856</guid>
      <dc:creator>bimala0507</dc:creator>
      <dc:date>2015-08-20T06:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: Issue on First Sorted Value</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-on-First-Sorted-Value/m-p/961146#M329857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suggest that you post your application or a representative sample. That way you will get more accurate and relevant help...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 06:57:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-on-First-Sorted-Value/m-p/961146#M329857</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-08-20T06:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Issue on First Sorted Value</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-on-First-Sorted-Value/m-p/961147#M329858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try if the DISTINCT qualifier resolves your issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;firstsortedvalue(DISTINCT {$&amp;lt;Inv_YearMonth_Num= {$(=max(Inv_YearMonth_Num))}&amp;gt;}[Item Description],QtySold)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 07:06:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-on-First-Sorted-Value/m-p/961147#M329858</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-08-20T07:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: Issue on First Sorted Value</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-on-First-Sorted-Value/m-p/961148#M329859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&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;&lt;STRONG&gt;=SubField(Concat(Aggr(FirstSortedValue({$&amp;lt;Inv_YearMonth_Num= {$(=Max(Inv_YearMonth_Num))}&amp;gt;}[Item Description],QtySold), &lt;/STRONG&gt;uniqueDimension&lt;STRONG&gt;), '|'), '|', 1)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here uniqueDimension would be one which would give you a unique Item Description for each row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 07:20:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-on-First-Sorted-Value/m-p/961148#M329859</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-20T07:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Issue on First Sorted Value</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-on-First-Sorted-Value/m-p/961149#M329860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I replaced Unique Dimension with [Item Description], since [Item Description] i.e. the unique field and it works fine. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 08:49:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-on-First-Sorted-Value/m-p/961149#M329860</guid>
      <dc:creator>bimala0507</dc:creator>
      <dc:date>2015-08-20T08:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: Issue on First Sorted Value</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-on-First-Sorted-Value/m-p/961150#M329861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DISTINCT does not work in this case. Thanks a lot !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 08:50:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-on-First-Sorted-Value/m-p/961150#M329861</guid>
      <dc:creator>bimala0507</dc:creator>
      <dc:date>2015-08-20T08:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Issue on First Sorted Value</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-on-First-Sorted-Value/m-p/961151#M329862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am glad it worked for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 09:00:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-on-First-Sorted-Value/m-p/961151#M329862</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-20T09:00:26Z</dc:date>
    </item>
  </channel>
</rss>

