<?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: First sorted value equality condition in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/First-sorted-value-equality-condition/m-p/1854597#M70546</link>
    <description>&lt;P&gt;In this case FirstSortedValue(&lt;STRONG&gt;DISTINCT&lt;/STRONG&gt; tur,-total,1) as "tur1",&lt;/P&gt;
&lt;P&gt;worked for me because the alphabetical order BI / EK / KA matches.&lt;/P&gt;</description>
    <pubDate>Tue, 02 Nov 2021 10:54:57 GMT</pubDate>
    <dc:creator>ManuelRühl</dc:creator>
    <dc:date>2021-11-02T10:54:57Z</dc:date>
    <item>
      <title>First sorted value equality condition</title>
      <link>https://community.qlik.com/t5/App-Development/First-sorted-value-equality-condition/m-p/1854546#M70538</link>
      <description>&lt;P&gt;I used first sorted value to make my calculation, My aim was to take max of total, concatenate reasons while mat is same and print tur which corresponds to max total.&lt;/P&gt;
&lt;P&gt;However there may be equality of total for different inputs(rows). In such cases, I would like to create a priorization among turs. If there is equality in among totals&amp;nbsp; "bi" should be first to print then, "ek"and then "ka".&lt;/P&gt;
&lt;P&gt;So below case instead of - , "bi" should be printed.&lt;/P&gt;
&lt;P&gt;p.s.In case are two distinct line where tur and the total are the same,&amp;nbsp; it should print tur itself in instead of "-"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Raw:&lt;BR /&gt;load&lt;BR /&gt;tur,&lt;BR /&gt;mat,&lt;BR /&gt;total,&lt;BR /&gt;reason&lt;BR /&gt;&lt;BR /&gt;From mysource;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Calculation:&lt;BR /&gt;LOAD&lt;BR /&gt;FirstSortedValue(tur,-total,1) as "tur1",&lt;BR /&gt;mat as mat1,&lt;BR /&gt;max(total) as total1,&lt;BR /&gt;concat(reason) as reason1&lt;/P&gt;
&lt;P&gt;Resident Raw&lt;BR /&gt;Group by mat&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 09:07:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/First-sorted-value-equality-condition/m-p/1854546#M70538</guid>
      <dc:creator>ayseayse</dc:creator>
      <dc:date>2021-11-02T09:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: First sorted value equality condition</title>
      <link>https://community.qlik.com/t5/App-Development/First-sorted-value-equality-condition/m-p/1854597#M70546</link>
      <description>&lt;P&gt;In this case FirstSortedValue(&lt;STRONG&gt;DISTINCT&lt;/STRONG&gt; tur,-total,1) as "tur1",&lt;/P&gt;
&lt;P&gt;worked for me because the alphabetical order BI / EK / KA matches.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 10:54:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/First-sorted-value-equality-condition/m-p/1854597#M70546</guid>
      <dc:creator>ManuelRühl</dc:creator>
      <dc:date>2021-11-02T10:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: First sorted value equality condition</title>
      <link>https://community.qlik.com/t5/App-Development/First-sorted-value-equality-condition/m-p/1854622#M70550</link>
      <description>&lt;P&gt;Unfortunately, it did not work at my local, it brought&amp;nbsp; "ka" instead of "bi".&amp;nbsp; From what understood from other community posts is that distinct was bringing random inputs.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 11:52:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/First-sorted-value-equality-condition/m-p/1854622#M70550</guid>
      <dc:creator>ayseayse</dc:creator>
      <dc:date>2021-11-02T11:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: First sorted value equality condition</title>
      <link>https://community.qlik.com/t5/App-Development/First-sorted-value-equality-condition/m-p/1854945#M70570</link>
      <description>Unfortunately, it did not work at my local, it brought  "ka" instead of&lt;BR /&gt;"bi".  From what understood from other community posts is that distinct was&lt;BR /&gt;bringing random inputs.&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Nov 2021 05:29:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/First-sorted-value-equality-condition/m-p/1854945#M70570</guid>
      <dc:creator>ayseayse</dc:creator>
      <dc:date>2021-11-03T05:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: First sorted value equality condition</title>
      <link>https://community.qlik.com/t5/App-Development/First-sorted-value-equality-condition/m-p/1856937#M70728</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/155040"&gt;@ayseayse&lt;/a&gt;&amp;nbsp;Did you find a solution?&lt;BR /&gt;I tried several approaches but nothing worked...&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 08:38:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/First-sorted-value-equality-condition/m-p/1856937#M70728</guid>
      <dc:creator>ManuelRühl</dc:creator>
      <dc:date>2021-11-09T08:38:32Z</dc:date>
    </item>
  </channel>
</rss>

