<?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: Firstsortedvalue giving NULL when value is tie. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-giving-NULL-when-value-is-tie/m-p/62743#M770133</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Tresesco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;FirstSortedValue( &lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Distinct&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; .....) its giving Value but i want to show another tie Value also in another Text object.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rajesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Jun 2018 11:04:48 GMT</pubDate>
    <dc:creator>Rajesh</dc:creator>
    <dc:date>2018-06-06T11:04:48Z</dc:date>
    <item>
      <title>Firstsortedvalue giving NULL when value is tie.</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-giving-NULL-when-value-is-tie/m-p/62739#M770129</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 was trying to display Top 5 Categories Count in 5 different Text Objects with the firstsortedvalue( with help of Sunny Talwar)&lt;/P&gt;&lt;P&gt;the value are correct but when the Values are tie then its giving NULL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please see used below expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;=Num(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit;"&gt;Count({&amp;lt;ProblemDateType = {'Opened'}, Problem.dv_u_problem_category = &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;{"$(=FirstSortedValue(&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;{&amp;lt;ProblemDateType = {'Opened'}, Problem.Calendar.Year = {'2018'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Problem.dv_u_problem_category, -Aggr(&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Count({&amp;lt;ProblemDateType = {'Opened'}, Problem.Calendar.Year = {'2018'}&amp;gt;} Problem.number), &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Problem.dv_u_problem_category&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;)))"}&lt;/SPAN&gt;, Problem.Calendar.Year = {'2018'}&amp;gt;}Problem.number)/&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit;"&gt;Count({&amp;lt;ProblemDateType= {'Opened'},Problem.Calendar.Year= {'2018'}&amp;gt;} Total Problem.number&lt;/STRONG&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;,'#,##0.##%')&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Can any one suggest the solution.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Thanks&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Rajesh.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-giving-NULL-when-value-is-tie/m-p/62739#M770129</guid>
      <dc:creator>Rajesh</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue giving NULL when value is tie.</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-giving-NULL-when-value-is-tie/m-p/62740#M770130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using concat once:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000; font-size: 13px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;{"$(=concat(FirstSortedValue(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;{&amp;lt;ProblemDateType = {'Opened'}, Problem.Calendar.Year = {'2018'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Problem.dv_u_problem_category, -Aggr(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Count({&amp;lt;ProblemDateType = {'Opened'}, Problem.Calendar.Year = {'2018'}&amp;gt;} Problem.number), &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Problem.dv_u_problem_category&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;)),',')"}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000; font-size: 13px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000; font-size: 13px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;may be modify a bit to get the proper format 'value','value'&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2018 10:42:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-giving-NULL-when-value-is-tie/m-p/62740#M770130</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2018-06-06T10:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue giving NULL when value is tie.</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-giving-NULL-when-value-is-tie/m-p/62741#M770131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be try this&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-style: inherit; font-size: 13px; font-family: inherit; color: #3d3d3d;"&gt;=Num(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;ProblemDateType = {'Opened'}, Problem.dv_u_problem_category =&lt;/P&gt;&lt;P&gt;{"$(=FirstSortedValue({&amp;lt;ProblemDateType = {'Opened'}, Problem.Calendar.Year = {'2018'}&amp;gt;}&lt;/P&gt;&lt;P&gt;Problem.dv_u_problem_category, -Aggr(Count({&amp;lt;ProblemDateType = {'Opened'}, Problem.Calendar.Year = {'2018'}&amp;gt;} Problem.number),&lt;/P&gt;&lt;P&gt;Problem.dv_u_problem_category,Problem.Calendar.Year)))"}, Problem.Calendar.Year = {'2018'}&amp;gt;}Problem.number)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Count({&amp;lt;ProblemDateType= {'Opened'},Problem.Calendar.Year= {'2018'}&amp;gt;} Total Problem.number&lt;/STRONG&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;,'#,##0.##%')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2018 10:44:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-giving-NULL-when-value-is-tie/m-p/62741#M770131</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2018-06-06T10:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue giving NULL when value is tie.</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-giving-NULL-when-value-is-tie/m-p/62742#M770132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using DISTINCT like: &lt;/P&gt;&lt;P&gt;....FirstSortedValue( &lt;STRONG&gt;Distinct&lt;/STRONG&gt; .....)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2018 10:47:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-giving-NULL-when-value-is-tie/m-p/62742#M770132</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-06-06T10:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue giving NULL when value is tie.</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-giving-NULL-when-value-is-tie/m-p/62743#M770133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Tresesco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;FirstSortedValue( &lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Distinct&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; .....) its giving Value but i want to show another tie Value also in another Text object.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rajesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2018 11:04:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-giving-NULL-when-value-is-tie/m-p/62743#M770133</guid>
      <dc:creator>Rajesh</dc:creator>
      <dc:date>2018-06-06T11:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue giving NULL when value is tie.</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-giving-NULL-when-value-is-tie/m-p/62744#M770134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Num(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;ProblemDateType = {'Opened'}, Problem.dv_u_problem_category = {"$(=FirstSortedValue({&amp;lt;ProblemDateType = {'Opened'}, Problem.Calendar.Year = {'2018'}&amp;gt;} Problem.dv_u_problem_category, -Aggr(Count({&amp;lt;ProblemDateType = {'Opened'}, Problem.Calendar.Year = {'2018'}&amp;gt;} Problem.number) &lt;SPAN style="color: #ff0000;"&gt;+ Rank(Only(&lt;STRONG&gt;{&amp;lt;ProblemDateType = {'Opened'}, Problem.Calendar.Year = {'2018'}&amp;gt;} &lt;/STRONG&gt;Problem.dv_u_problem_category))/1E10&lt;/SPAN&gt;, Problem.dv_u_problem_category)))"}, Problem.Calendar.Year = {'2018'}&amp;gt;}Problem.number)/&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Count({&amp;lt;ProblemDateType= {'Opened'},Problem.Calendar.Year= {'2018'}&amp;gt;} Total Problem.number,'#,##0.##%')&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Num(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;ProblemDateType = {'Opened'}, Problem.dv_u_problem_category = {"$(=FirstSortedValue({&amp;lt;ProblemDateType = {'Opened'}, Problem.Calendar.Year = {'2018'}&amp;gt;} Problem.dv_u_problem_category, -Aggr(Count({&amp;lt;ProblemDateType = {'Opened'}, Problem.Calendar.Year = {'2018'}&amp;gt;} Problem.number) -&lt;SPAN style="color: #ff0000;"&gt; Rank(Only(&lt;STRONG&gt;{&amp;lt;ProblemDateType = {'Opened'}, Problem.Calendar.Year = {'2018'}&amp;gt;} &lt;/STRONG&gt;Problem.dv_u_problem_category))/1E10&lt;/SPAN&gt;, Problem.dv_u_problem_category)))"}, Problem.Calendar.Year = {'2018'}&amp;gt;}Problem.number)/&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Count({&amp;lt;ProblemDateType= {'Opened'},Problem.Calendar.Year= {'2018'}&amp;gt;} Total Problem.number,'#,##0.##%')&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;But what if there are 5 categories which have the same rank? How do you expect to see that? I mean there need to be some point where you have to decide that this can't be done in a text box object and move it to a chart or something&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2018 11:23:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-giving-NULL-when-value-is-tie/m-p/62744#M770134</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-06-06T11:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue giving NULL when value is tie.</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-giving-NULL-when-value-is-tie/m-p/62745#M770135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you again Sunny&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;The Values are displaying as expected. i am agree with that we can show Chart in better,But its my client requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell me that what 1E10 does in expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rajesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2018 12:08:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-giving-NULL-when-value-is-tie/m-p/62745#M770135</guid>
      <dc:creator>Rajesh</dc:creator>
      <dc:date>2018-06-06T12:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue giving NULL when value is tie.</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-giving-NULL-when-value-is-tie/m-p/62746#M770136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1E10 is another way of writing 10000000000. I am just dividing Rank portion by a very large number to give it lower importance compared to the count of category.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2018 12:11:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-giving-NULL-when-value-is-tie/m-p/62746#M770136</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-06-06T12:11:04Z</dc:date>
    </item>
  </channel>
</rss>

