<?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: Need to create a Column in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-to-create-a-Column/m-p/1642414#M456236</link>
    <description>&lt;P&gt;that should do it:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Source:
LOAD TNR, 
     RNR, 
     ID, 
     DAT, 
     TIM,
     Rank,
     rowNo() as RowNo
FROM ..\test_data.xlsx (ooxml, embedded labels, table is Sheet1);

Final:
NoConcatenate
Load TNR, 
     RNR, 
     ID, 
     DAT, 
     TIM,
     Rank,
     AutoNumber(RowNo, ID) as Rank_Script
Resident Source
order by ID ASC, DAT DESC, TIM DESC, RowNo ASC
;
drop table Source;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Nov 2019 07:25:53 GMT</pubDate>
    <dc:creator>zhadrakas</dc:creator>
    <dc:date>2019-11-04T07:25:53Z</dc:date>
    <item>
      <title>Need to create a Column</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-create-a-Column/m-p/1642389#M456235</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I need help in creating a column call &lt;STRONG&gt;Rank&lt;/STRONG&gt; (&lt;STRONG&gt;Colored in Gree&lt;/STRONG&gt;n) at qlik scripting as Shown below&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/22812i0DD6296F929C6274/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Conditions:&lt;/P&gt;&lt;P&gt;1)For each ID the rank will start from 1&lt;/P&gt;&lt;P&gt;2)There are multiple row were ID,DAT,TIM are same for such record the top row should get &amp;nbsp;rank 1 ,followed by 2 ,3 so on&lt;/P&gt;&lt;P&gt;3)There are few rows where ID and DAT are same but TIM is different in such case the latest time should been assigned as Rank 1 as shown above&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please find the attachment &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 05:55:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-create-a-Column/m-p/1642389#M456235</guid>
      <dc:creator>kunkumnaveen</dc:creator>
      <dc:date>2019-11-04T05:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Need to create a Column</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-create-a-Column/m-p/1642414#M456236</link>
      <description>&lt;P&gt;that should do it:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Source:
LOAD TNR, 
     RNR, 
     ID, 
     DAT, 
     TIM,
     Rank,
     rowNo() as RowNo
FROM ..\test_data.xlsx (ooxml, embedded labels, table is Sheet1);

Final:
NoConcatenate
Load TNR, 
     RNR, 
     ID, 
     DAT, 
     TIM,
     Rank,
     AutoNumber(RowNo, ID) as Rank_Script
Resident Source
order by ID ASC, DAT DESC, TIM DESC, RowNo ASC
;
drop table Source;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 07:25:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-create-a-Column/m-p/1642414#M456236</guid>
      <dc:creator>zhadrakas</dc:creator>
      <dc:date>2019-11-04T07:25:53Z</dc:date>
    </item>
  </channel>
</rss>

