<?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 not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-not-working/m-p/1134667#M894840</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mayils firstsortedvalue function is working but not working if i select any period from the filter..i think i need to show date irrespective of current selected year&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Aug 2016 06:52:53 GMT</pubDate>
    <dc:creator>gauthamchilled</dc:creator>
    <dc:date>2016-08-05T06:52:53Z</dc:date>
    <item>
      <title>Firstsortedvalue not working</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-not-working/m-p/1134661#M894834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i would like to show startdate of sales for each country ..my date format is like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fy2015,20152&lt;/P&gt;&lt;P&gt;my2015,20151&lt;/P&gt;&lt;P&gt;fy2014,20142&lt;/P&gt;&lt;P&gt;my2014,20141&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just want to show start date as first sales date or first business started year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you help please?&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-not-working/m-p/1134661#M894834</guid>
      <dc:creator>gauthamchilled</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue not working</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-not-working/m-p/1134662#M894835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;country&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Start Date&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Chile&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;FY2014&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;China&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;MY2014&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Switzerland&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;FY2013&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;UK&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;MY2013&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;US&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;FY2013&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=FirstSortedValue(Period, PeriodActual)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or &lt;/P&gt;&lt;P&gt;in back end&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test:&lt;/P&gt;&lt;P&gt;Load * inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Period, PeriodActual,country,sales&lt;/P&gt;&lt;P&gt;FY2015,20152,Switzerland,23000&lt;/P&gt;&lt;P&gt;FY2013,20132,Switzerland,13000&lt;/P&gt;&lt;P&gt;MY2015,20151,China,121000&lt;/P&gt;&lt;P&gt;FY2014,20142,Chile,221211&lt;/P&gt;&lt;P&gt;MY2014,20141,China,21300&lt;/P&gt;&lt;P&gt;FY2013,20132,US,321310&lt;/P&gt;&lt;P&gt;FY2015,20152,US,321313&lt;/P&gt;&lt;P&gt;MY2013,20131,UK,311421&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD country, FirstSortedValue(Period, PeriodActual)&amp;nbsp; as StartDate Resident Test&lt;/P&gt;&lt;P&gt;Group by country;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;country&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;StartDate&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Chile&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;FY2014&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;China&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;MY2014&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Switzerland&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;FY2013&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;UK&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;MY2013&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;US&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;FY2013&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 06:36:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-not-working/m-p/1134662#M894835</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2016-08-05T06:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue not working</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-not-working/m-p/1134663#M894836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks mayil, but &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=FirstSortedValue(Period, PeriodActual) is not working , find the attachment and can you help to look please&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 06:43:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-not-working/m-p/1134663#M894836</guid>
      <dc:creator>gauthamchilled</dc:creator>
      <dc:date>2016-08-05T06:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue not working</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-not-working/m-p/1134664#M894837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gautham Prasad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your requirement is not clear. Can you show us required output ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 06:45:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-not-working/m-p/1134664#M894837</guid>
      <dc:creator>rajuamet</dc:creator>
      <dc:date>2016-08-05T06:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue not working</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-not-working/m-p/1134665#M894838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="output.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/133716_output.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;output is already available in the thread&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 06:48:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-not-working/m-p/1134665#M894838</guid>
      <dc:creator>gauthamchilled</dc:creator>
      <dc:date>2016-08-05T06:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue not working</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-not-working/m-p/1134666#M894839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gautham,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)As per your text object,you mentioned 2012 but there is no 2012 year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)The data which you provide is not understandable for me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you want to show like&lt;/P&gt;&lt;P&gt;if business starts in&amp;nbsp; &lt;STRONG&gt;US&lt;/STRONG&gt; at&amp;nbsp; 2012 you want 2012 sales only even though you selected any year in Filter am i right?&lt;/P&gt;&lt;P&gt;like that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;even though you select 2014 as year for country &lt;STRONG&gt;Switzerland &lt;/STRONG&gt;(this country starts the business 2 times in 2013 and 2015 so which one we need to show in data?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry i am unable to understand your question tha's way i am asking these many questions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hope you will get start year data&amp;nbsp; for country wise ,you need to write set analysis/If conditions for each and every country.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 06:49:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-not-working/m-p/1134666#M894839</guid>
      <dc:creator>ramasaisaksoft</dc:creator>
      <dc:date>2016-08-05T06:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue not working</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-not-working/m-p/1134667#M894840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mayils firstsortedvalue function is working but not working if i select any period from the filter..i think i need to show date irrespective of current selected year&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 06:52:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-not-working/m-p/1134667#M894840</guid>
      <dc:creator>gauthamchilled</dc:creator>
      <dc:date>2016-08-05T06:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue not working</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-not-working/m-p/1134668#M894841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=FirstSortedValue({&amp;lt;Period=&amp;gt;}Period, PeriodActual)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or go for Back end process.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 07:07:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-not-working/m-p/1134668#M894841</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2016-08-05T07:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue not working</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-not-working/m-p/1134669#M894842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gautham,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;take a Staraight table objetct,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;dim: Country&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expr :FirstSortedValue(Period,PeriodActual)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you will get your solution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in code/script&amp;nbsp; level you can fallow &lt;STRONG style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/mayilvahanan"&gt;mayilvahanan&lt;/A&gt;&lt;/STRONG&gt; solution &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 07:12:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-not-working/m-p/1134669#M894842</guid>
      <dc:creator>ramasaisaksoft</dc:creator>
      <dc:date>2016-08-05T07:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue not working</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-not-working/m-p/1134670#M894843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;A href="https://community.qlik.com/qlik-users/88778"&gt;mayilvahanan&lt;/A&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;I did the same, but it show 0 values for all the countries sales even though they dont have sales. start date is working fine.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Is there any way to get rid of those zeros..attached the file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 08:07:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-not-working/m-p/1134670#M894843</guid>
      <dc:creator>gauthamchilled</dc:creator>
      <dc:date>2016-08-05T08:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue not working</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-not-working/m-p/1134671#M894844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gautham Prasad&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this what you were expecting ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Boo&lt;/P&gt;&lt;P&gt;Please mark correct answer if you find them.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="sales sum.PNG" class="jive-image image-1" src="/legacyfs/online/133726_sales sum.PNG" style="height: 672px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 09:18:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-not-working/m-p/1134671#M894844</guid>
      <dc:creator>boopeshj</dc:creator>
      <dc:date>2016-08-05T09:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue not working</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-not-working/m-p/1134672#M894845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you looking for this output?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/133741_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changed the start date expression to this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(Sum(sales) &amp;gt; 0, FirstSortedValue({&amp;lt;Period=&amp;gt;}Period, PeriodActual))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 09:50:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-not-working/m-p/1134672#M894845</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-05T09:50:11Z</dc:date>
    </item>
  </channel>
</rss>

