<?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: Ranking in script or another method in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Ranking-in-script-or-another-method/m-p/1920074#M75736</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;1. Create one new field in table2, that field will respect to id_a like a1 should c1, now you have created primary key in new field with respect to table1.&lt;/P&gt;
&lt;P&gt;2. Now do left join, from table2 (new fielde) as %Ref1 and from table1 (id_c) as %Ref1.&lt;/P&gt;
&lt;P&gt;3. Now create field like&lt;/P&gt;
&lt;P&gt;If(id_a&amp;lt;=id_c, "match","NA") as Status,&lt;/P&gt;
&lt;P&gt;In resident table from above table.&lt;/P&gt;
&lt;P&gt;4. Use whereclass&amp;nbsp; status ="match" data only considered in app data&lt;/P&gt;
&lt;P&gt;5. You can create straight table as you expected result.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Apr 2022 18:06:35 GMT</pubDate>
    <dc:creator>Ksrinivasan</dc:creator>
    <dc:date>2022-04-19T18:06:35Z</dc:date>
    <item>
      <title>Ranking in script or another method</title>
      <link>https://community.qlik.com/t5/App-Development/Ranking-in-script-or-another-method/m-p/1919966#M75720</link>
      <description>&lt;P&gt;Hey! We have 2 tables that need to be related 1 to 1. One record of the left table must match one record of the right table.&lt;BR /&gt;Where date_a&amp;gt;=date_c and date_a&amp;lt;=date_c+29. a1 corresponds to c1 with the minimum date_c from the interval by id=1. There is an idea to create in tables keys with a rank on dates. How can this be done in a script or can it be done differently?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IMG_20220419_185854_665.jpg" style="width: 689px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/77416i36E92900CA403B1B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="IMG_20220419_185854_665.jpg" alt="IMG_20220419_185854_665.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 14:11:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ranking-in-script-or-another-method/m-p/1919966#M75720</guid>
      <dc:creator>KateQ</dc:creator>
      <dc:date>2022-04-19T14:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking in script or another method</title>
      <link>https://community.qlik.com/t5/App-Development/Ranking-in-script-or-another-method/m-p/1920074#M75736</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;1. Create one new field in table2, that field will respect to id_a like a1 should c1, now you have created primary key in new field with respect to table1.&lt;/P&gt;
&lt;P&gt;2. Now do left join, from table2 (new fielde) as %Ref1 and from table1 (id_c) as %Ref1.&lt;/P&gt;
&lt;P&gt;3. Now create field like&lt;/P&gt;
&lt;P&gt;If(id_a&amp;lt;=id_c, "match","NA") as Status,&lt;/P&gt;
&lt;P&gt;In resident table from above table.&lt;/P&gt;
&lt;P&gt;4. Use whereclass&amp;nbsp; status ="match" data only considered in app data&lt;/P&gt;
&lt;P&gt;5. You can create straight table as you expected result.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 18:06:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ranking-in-script-or-another-method/m-p/1920074#M75736</guid>
      <dc:creator>Ksrinivasan</dc:creator>
      <dc:date>2022-04-19T18:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking in script or another method</title>
      <link>https://community.qlik.com/t5/App-Development/Ranking-in-script-or-another-method/m-p/1920282#M75752</link>
      <description>&lt;P&gt;I must say this dataset is very ambiguous&lt;/P&gt;
&lt;P&gt;Try with autonumber()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;temp_Tablec:&lt;/P&gt;
&lt;P&gt;Load id,id_c,date_c&lt;/P&gt;
&lt;P&gt;From Xyz;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TableC:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Load&lt;/SPAN&gt; *, &lt;SPAN&gt;id&amp;amp;'-'&lt;/SPAN&gt;autonumber(id&amp;amp;date_c) as auto_id&lt;/P&gt;
&lt;P&gt;Resident &lt;SPAN&gt;temp_Tablea&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Order by id,id_c,date_c;&lt;/P&gt;
&lt;P&gt;Drop table&amp;nbsp;&lt;SPAN&gt;temp_Tablec;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;temp_TableA:&lt;/P&gt;
&lt;P&gt;Load id,id_a,date_a&lt;/P&gt;
&lt;P&gt;From PQr;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TableA:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Load&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;*,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;id&amp;amp;'-'&lt;/SPAN&gt;autonumber(id&amp;amp;date_a) as auto_id&lt;/P&gt;
&lt;P&gt;Resident&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;temp_TableA&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Order by id,id_a,date_a;&lt;/P&gt;
&lt;P&gt;Drop table &lt;SPAN&gt;temp_TableA&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Your tables should now be associated by auto_id&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 08:17:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ranking-in-script-or-another-method/m-p/1920282#M75752</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-04-20T08:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking in script or another method</title>
      <link>https://community.qlik.com/t5/App-Development/Ranking-in-script-or-another-method/m-p/1920377#M75758</link>
      <description>&lt;P&gt;Autonumber() continues numbering in the second table.&amp;nbsp;Before that, I tried to use Autonamber(RowNo()), but RowNo() can only be used in one table, the result will also be incorrect in the second&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IMG_20220420_155201_715.jpg" style="width: 316px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/77492iDF7C2E69F6C72D4C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="IMG_20220420_155201_715.jpg" alt="IMG_20220420_155201_715.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 10:53:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ranking-in-script-or-another-method/m-p/1920377#M75758</guid>
      <dc:creator>KateQ</dc:creator>
      <dc:date>2022-04-20T10:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking in script or another method</title>
      <link>https://community.qlik.com/t5/App-Development/Ranking-in-script-or-another-method/m-p/1920396#M75760</link>
      <description>&lt;P&gt;please post some sample data,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 11:14:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ranking-in-script-or-another-method/m-p/1920396#M75760</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-04-20T11:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking in script or another method</title>
      <link>https://community.qlik.com/t5/App-Development/Ranking-in-script-or-another-method/m-p/1920449#M75763</link>
      <description>&lt;P&gt;claim:&lt;BR /&gt;LOAD * Inline[&lt;BR /&gt;id,id_c,date_c&lt;BR /&gt;1,c1,01.02.2021&lt;BR /&gt;1,c2,09.02.2021&lt;BR /&gt;1,c3,19.03.2021&lt;BR /&gt;1,c4,24.03.2021&lt;BR /&gt;2,c21,01.02.2021&lt;BR /&gt;2,c22,09.02.2021&lt;BR /&gt;2,c23,19.03.2021&lt;BR /&gt;2,c24,24.03.2021];&lt;/P&gt;
&lt;P&gt;ank:&lt;BR /&gt;LOAD * Inline[&lt;BR /&gt;id,id_a,date_a&lt;BR /&gt;1,a1,10.02.2021&lt;BR /&gt;1,a2,11.02.2021&lt;BR /&gt;1,a3,19.03.2021&lt;BR /&gt;1,a4,24.05.2021&lt;BR /&gt;2,a21,08.02.2021&lt;BR /&gt;2,a22,12.02.2021&lt;BR /&gt;2,a23,18.03.2021&lt;BR /&gt;2,a24,23.05.2021];&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 12:37:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ranking-in-script-or-another-method/m-p/1920449#M75763</guid>
      <dc:creator>KateQ</dc:creator>
      <dc:date>2022-04-20T12:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking in script or another method</title>
      <link>https://community.qlik.com/t5/App-Development/Ranking-in-script-or-another-method/m-p/1920473#M75765</link>
      <description>&lt;P&gt;here you go&lt;/P&gt;
&lt;P&gt;claim:&lt;BR /&gt;LOAD id,id_c,date#(date_c,'DD.MM.YYYY') as date_c Inline [&lt;BR /&gt;id,id_c,date_c&lt;BR /&gt;1,c1,01.02.2021&lt;BR /&gt;1,c2,09.02.2021&lt;BR /&gt;1,c3,19.03.2021&lt;BR /&gt;1,c4,24.03.2021&lt;BR /&gt;2,c21,01.02.2021&lt;BR /&gt;2,c22,09.02.2021&lt;BR /&gt;2,c23,19.03.2021&lt;BR /&gt;2,c24,24.03.2021];&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;BR /&gt;claim_:&lt;BR /&gt;Load &lt;BR /&gt;id as id_claim&lt;BR /&gt;,id_c&lt;BR /&gt;,date_c&lt;BR /&gt;,id&amp;amp;'-'&amp;amp;autonumber(id&amp;amp;date_c,'claim') as auto_id&lt;BR /&gt;Resident claim&lt;BR /&gt;Order by id,id_c,date_c asc;&lt;BR /&gt;Drop table claim;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;ank:&lt;BR /&gt;LOAD id,id_a,date#(date_a,'DD.MM.YYYY') as date_a Inline [&lt;BR /&gt;id,id_a,date_a&lt;BR /&gt;1,a1,10.02.2021&lt;BR /&gt;1,a2,11.02.2021&lt;BR /&gt;1,a3,19.03.2021&lt;BR /&gt;1,a4,24.05.2021&lt;BR /&gt;2,a21,08.02.2021&lt;BR /&gt;2,a22,12.02.2021&lt;BR /&gt;2,a23,18.03.2021&lt;BR /&gt;2,a24,23.05.2021];&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;BR /&gt;ank_:&lt;BR /&gt;Load &lt;BR /&gt;id as id_ank&lt;BR /&gt;,id_a&lt;BR /&gt;,date_a&lt;BR /&gt;,id&amp;amp;'-'&amp;amp;autonumber(id&amp;amp;date_a,'ank_') as auto_id&lt;BR /&gt;Resident ank&lt;BR /&gt;Order by id,id_a,date_a asc;&lt;BR /&gt;Drop table ank;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="output" style="width: 823px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/77512iAEEC38D8DD0F50C5/image-size/large?v=v2&amp;amp;px=999" role="button" title="qlikCommunity1.PNG" alt="output" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;output&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 13:05:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ranking-in-script-or-another-method/m-p/1920473#M75765</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-04-20T13:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking in script or another method</title>
      <link>https://community.qlik.com/t5/App-Development/Ranking-in-script-or-another-method/m-p/1929976#M76578</link>
      <description>&lt;P&gt;&lt;SPAN class="Y2IQFc"&gt;The condition date_a&amp;gt;=date_c and date_a&amp;lt;=date_c+29 must be taken into account&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KateQ_7-1652375967509.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/79291iFE5062208F5E60A7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KateQ_7-1652375967509.jpeg" alt="KateQ_7-1652375967509.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 17:22:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ranking-in-script-or-another-method/m-p/1929976#M76578</guid>
      <dc:creator>KateQ</dc:creator>
      <dc:date>2022-05-12T17:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking in script or another method</title>
      <link>https://community.qlik.com/t5/App-Development/Ranking-in-script-or-another-method/m-p/1930121#M76599</link>
      <description>&lt;P&gt;that would be incorrect when joining, there are multiple dates that would satisfy the criteria&lt;/P&gt;
&lt;P&gt;claim:&lt;/P&gt;
&lt;TABLE width="278px"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="277px"&gt;date_c 01/02/2022&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ank:&lt;/P&gt;
&lt;TABLE width="75"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="75"&gt;
&lt;P&gt;date_a&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;10/02/2022&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;11/02/2022&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;10/02/2022&amp;nbsp; &amp;nbsp;&amp;gt; 01/02/2022&amp;nbsp; and&amp;nbsp; &amp;nbsp; &lt;SPAN&gt;10/02/2022&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&amp;lt;= 02/03/2022&amp;nbsp; &lt;STRONG&gt;(01/02/2022 + 29)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;11/02/2022&amp;nbsp; &amp;nbsp;&amp;gt; 01/02/2022&amp;nbsp; and&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;11/02/2022&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;= 02/03/2022&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;(01/02/2022 + 29)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 03:41:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ranking-in-script-or-another-method/m-p/1930121#M76599</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-05-13T03:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking in script or another method</title>
      <link>https://community.qlik.com/t5/App-Development/Ranking-in-script-or-another-method/m-p/1931515#M76747</link>
      <description>&lt;P&gt;&lt;SPAN class="Y2IQFc"&gt;The condition also states that you need to take the minimum date from the interval&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 08:09:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ranking-in-script-or-another-method/m-p/1931515#M76747</guid>
      <dc:creator>KateQ</dc:creator>
      <dc:date>2022-05-17T08:09:45Z</dc:date>
    </item>
  </channel>
</rss>

