<?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 from multi columns in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-from-multi-columns/m-p/1407538#M820791</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't have data for the set analysis filter used . I mean for the date 2016-11 the corresponding value in&lt;/P&gt;&lt;P&gt;F2&amp;nbsp; = '予算 ' is not available&amp;nbsp; when you use the below expression it shows data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FirstSortedValue&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Type&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'売 上 高　実　績'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TestedDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'2016-11'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;F2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'实际'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Key&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, -&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Key&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Aug 2017 05:42:48 GMT</pubDate>
    <dc:creator>qliksus</dc:creator>
    <dc:date>2017-08-16T05:42:48Z</dc:date>
    <item>
      <title>Firstsortedvalue from multi columns</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-from-multi-columns/m-p/1407535#M820783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my purpose:&lt;/P&gt;&lt;P&gt;I want to get the latest data from imported data sheet, for example:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Based on &lt;SPAN style="color: #ff0000;"&gt;F2='&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;予算&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;', &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #ff0000;"&gt;TestedDate='2016-11',Type='売上高実績'&lt;/SPAN&gt; these three conditions, and combined with Key(auto number function), I can locate the latest data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;So I write &lt;SPAN style="color: #ff0000;"&gt;Sum({&amp;lt;Type={'売 上 高　実　績'},Key={"$(=FirstSortedValue({&amp;lt;Type={'売 上 高　実　績'},TestedDate={'2016-11'},F2={'予算'}&amp;gt;} Key, -Key))"}&amp;gt;} Data)&lt;/SPAN&gt; in expression.&lt;/P&gt;&lt;P&gt;However, after I applied the expression, the charter display nothing.&lt;/P&gt;&lt;P&gt;I don't know what's wrong with the expression, the Firstsortedvalue statement seems working well.&lt;/P&gt;&lt;P&gt;Someone please help me out, thank you.&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-from-multi-columns/m-p/1407535#M820783</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue from multi columns</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-from-multi-columns/m-p/1407536#M820789</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;As far as i know FirstSortedValue can hold only 2 parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be create something like below to get the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *, Type&amp;amp;F2 as FSVKey Resident Table5;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression : Sum({&amp;lt;Type={'売 上 高　実　績'},Key={"$(=FirstSortedValue({&amp;lt;FSVKey={'売 上 高　実　績预算'},TestedDate={'2016-11'}&amp;gt;} Key, -Key))"}&amp;gt;} Data)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="sample.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/173500_sample.PNG" style="height: 330px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Aug 2017 04:05:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-from-multi-columns/m-p/1407536#M820789</guid>
      <dc:creator>techvarun</dc:creator>
      <dc:date>2017-08-16T04:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue from multi columns</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-from-multi-columns/m-p/1407537#M820790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Varun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your solution can fix this problem, thx a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Aug 2017 05:06:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-from-multi-columns/m-p/1407537#M820790</guid>
      <dc:creator />
      <dc:date>2017-08-16T05:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue from multi columns</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-from-multi-columns/m-p/1407538#M820791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't have data for the set analysis filter used . I mean for the date 2016-11 the corresponding value in&lt;/P&gt;&lt;P&gt;F2&amp;nbsp; = '予算 ' is not available&amp;nbsp; when you use the below expression it shows data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FirstSortedValue&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Type&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'売 上 高　実　績'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TestedDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'2016-11'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;F2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'实际'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Key&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, -&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Key&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Aug 2017 05:42:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-from-multi-columns/m-p/1407538#M820791</guid>
      <dc:creator>qliksus</dc:creator>
      <dc:date>2017-08-16T05:42:48Z</dc:date>
    </item>
  </channel>
</rss>

