<?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 What is the equivalent of ROW_NUMBER() OVER (PARTITION BY etc... ORDER BY etc... DESC) in Qlik Sense in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/What-is-the-equivalent-of-ROW-NUMBER-OVER-PARTITION-BY-etc-ORDER/m-p/2502612#M103478</link>
    <description>&lt;P&gt;Hello there!&lt;/P&gt;
&lt;P&gt;I have the following issue. I want to recreate this logic into Qlik sense, but without success. What I want is for every combination of ga,download_date to order the results of these 3 different columns DESC to basically see which ga has the earliest download_date with that combination.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code:&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;ROW_NUMBER&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt; &lt;SPAN&gt;OVER&lt;/SPAN&gt; &lt;SPAN&gt;(&lt;/SPAN&gt; &lt;SPAN&gt;PARTITION&lt;/SPAN&gt; &lt;SPAN&gt;BY&lt;/SPAN&gt; &lt;SPAN&gt;ga&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;download_date&lt;/SPAN&gt; &lt;SPAN&gt;ORDER&lt;/SPAN&gt; &lt;SPAN&gt;BY&lt;/SPAN&gt; &lt;SPAN&gt;gclid_exists&lt;/SPAN&gt; &lt;SPAN&gt;DESC&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;bing_exists&lt;/SPAN&gt; &lt;SPAN&gt;DESC&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;referrer_exists&lt;/SPAN&gt; &lt;SPAN&gt;DESC&lt;/SPAN&gt; &lt;SPAN&gt;)&lt;/SPAN&gt; &lt;SPAN&gt;AS&lt;/SPAN&gt; &lt;SPAN&gt;RN&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Currently I am trying with AutoNumber():&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; AutoNumber(ga &amp;amp; '_' &amp;amp; download_date &amp;amp; '_' &amp;amp; gclid_exists &amp;amp; '_' &amp;amp; bing_exists &amp;amp; '_' &amp;amp; referrer_exists) as Row_Key&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;However, I don't get the desired result. I appreciate any suggestions. Thank you in advance.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Thu, 23 Jan 2025 09:37:20 GMT</pubDate>
    <dc:creator>Stanislav1</dc:creator>
    <dc:date>2025-01-23T09:37:20Z</dc:date>
    <item>
      <title>What is the equivalent of ROW_NUMBER() OVER (PARTITION BY etc... ORDER BY etc... DESC) in Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/What-is-the-equivalent-of-ROW-NUMBER-OVER-PARTITION-BY-etc-ORDER/m-p/2502612#M103478</link>
      <description>&lt;P&gt;Hello there!&lt;/P&gt;
&lt;P&gt;I have the following issue. I want to recreate this logic into Qlik sense, but without success. What I want is for every combination of ga,download_date to order the results of these 3 different columns DESC to basically see which ga has the earliest download_date with that combination.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code:&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;ROW_NUMBER&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt; &lt;SPAN&gt;OVER&lt;/SPAN&gt; &lt;SPAN&gt;(&lt;/SPAN&gt; &lt;SPAN&gt;PARTITION&lt;/SPAN&gt; &lt;SPAN&gt;BY&lt;/SPAN&gt; &lt;SPAN&gt;ga&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;download_date&lt;/SPAN&gt; &lt;SPAN&gt;ORDER&lt;/SPAN&gt; &lt;SPAN&gt;BY&lt;/SPAN&gt; &lt;SPAN&gt;gclid_exists&lt;/SPAN&gt; &lt;SPAN&gt;DESC&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;bing_exists&lt;/SPAN&gt; &lt;SPAN&gt;DESC&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;referrer_exists&lt;/SPAN&gt; &lt;SPAN&gt;DESC&lt;/SPAN&gt; &lt;SPAN&gt;)&lt;/SPAN&gt; &lt;SPAN&gt;AS&lt;/SPAN&gt; &lt;SPAN&gt;RN&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Currently I am trying with AutoNumber():&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; AutoNumber(ga &amp;amp; '_' &amp;amp; download_date &amp;amp; '_' &amp;amp; gclid_exists &amp;amp; '_' &amp;amp; bing_exists &amp;amp; '_' &amp;amp; referrer_exists) as Row_Key&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;However, I don't get the desired result. I appreciate any suggestions. Thank you in advance.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 23 Jan 2025 09:37:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/What-is-the-equivalent-of-ROW-NUMBER-OVER-PARTITION-BY-etc-ORDER/m-p/2502612#M103478</guid>
      <dc:creator>Stanislav1</dc:creator>
      <dc:date>2025-01-23T09:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: What is the equivalent of ROW_NUMBER() OVER (PARTITION BY etc... ORDER BY etc... DESC) in Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/What-is-the-equivalent-of-ROW-NUMBER-OVER-PARTITION-BY-etc-ORDER/m-p/2502653#M103484</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/206191"&gt;@Stanislav1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Autonumber should work, But I would remove the &amp;amp;' _'&amp;amp; stuff.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would just add a order By on the table:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;ORDER&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;BY&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;gclid_exists&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;DESC&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;bing_exists&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;DESC&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;referrer_exists&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;DESC&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Check out this post.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/New-to-Qlik-Analytics/SQL-ROW-NUMBER-OVER-PARTITION-BY-ORDER-BY-Row-Number-in-Qlik/td-p/2140322" target="_blank"&gt;https://community.qlik.com/t5/New-to-Qlik-Analytics/SQL-ROW-NUMBER-OVER-PARTITION-BY-ORDER-BY-Row-Number-in-Qlik/td-p/2140322&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;So the load would look something like this&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Load 
    Field, 
    Field1, 
    Field2, 
    Field3
    Autonumber(ga, download_date) as Row
From xxxxx
Order by gclid_exists DESC, bing_exists DESC, referrer_exists DESC;
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards - Jandre&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 13:17:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/What-is-the-equivalent-of-ROW-NUMBER-OVER-PARTITION-BY-etc-ORDER/m-p/2502653#M103484</guid>
      <dc:creator>JandreKillianRIC</dc:creator>
      <dc:date>2025-01-23T13:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: What is the equivalent of ROW_NUMBER() OVER (PARTITION BY etc... ORDER BY etc... DESC) in Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/What-is-the-equivalent-of-ROW-NUMBER-OVER-PARTITION-BY-etc-ORDER/m-p/2504540#M103790</link>
      <description>&lt;P&gt;Thank you very much, Jandre&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 08:17:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/What-is-the-equivalent-of-ROW-NUMBER-OVER-PARTITION-BY-etc-ORDER/m-p/2504540#M103790</guid>
      <dc:creator>Stanislav1</dc:creator>
      <dc:date>2025-02-05T08:17:33Z</dc:date>
    </item>
  </channel>
</rss>

