<?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: Processing on loading an Excel table in Qlik Sense in Qlik Automate</title>
    <link>https://community.qlik.com/t5/Qlik-Automate/Processing-on-loading-an-Excel-table-in-Qlik-Sense/m-p/2465173#M4200</link>
    <description>&lt;P&gt;I think I would do several things:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;adding aggregated values to the table&lt;/LI&gt;
&lt;LI&gt;creating a ranking with interrecord-function&lt;/LI&gt;
&lt;LI&gt;evaluating aggregations + ranks against the row-values within n flags&lt;/LI&gt;
&lt;LI&gt;filtering the dataset against the flags - in the UI and only optional in the script&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;This may look like:&lt;/P&gt;
&lt;P&gt;t1: load *,&amp;nbsp;Month &amp;amp;'|'&amp;amp; Year &amp;amp; '|' &amp;amp; Document as KEY from X;&lt;/P&gt;
&lt;P&gt;left join(t1)&lt;/P&gt;
&lt;P&gt;load KEY,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; count(Hours) as a,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; min(Hours) as b,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; max(Hours) as c,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; avg(Hours) as d,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; median(Hours) as e,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fractile(Hours, 0.05) as f,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fractile(Hours, 0.95) as g&lt;BR /&gt;resident t1 group by&amp;nbsp;KEY;&lt;/P&gt;
&lt;P&gt;t2: load *, if(KEY = previous(KEY), peek('Rank') + 1, 1) as Rank&lt;BR /&gt;resident t1 order by KEY, Hours;&lt;/P&gt;
&lt;P&gt;t3: load *, if(......) as Flag1, ....&lt;BR /&gt;resident t2:&lt;/P&gt;
&lt;P&gt;drop tables t1, t2;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jun 2024 06:22:59 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2024-06-25T06:22:59Z</dc:date>
    <item>
      <title>Processing on loading an Excel table in Qlik Sense</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Processing-on-loading-an-Excel-table-in-Qlik-Sense/m-p/2465029#M4195</link>
      <description>&lt;P&gt;Hello, I am working with Qlik Sense during my internship, and I am reaching out to you because I am stuck. That's why I am asking for your help and suggestions. I have an Excel table that contains the total order processing time in hours (this is the last relevant column), and I would like to write a script during loading that will remove the top 5% of rows with the highest processing times per month. To be more specific, I have a table that contains 100 orders for January and February 2023. After loading, the script should help me remove the 5 orders with the highest processing times for January and the same for February. In the result, I would like to have 95 remaining orders for January and 95 for February.&lt;/P&gt;
&lt;P&gt;I used the rank function but didn't get any results. Thank you for your help.&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="Davy1_0-1719241788194.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/168404iCA5DBBF24655090B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Davy1_0-1719241788194.png" alt="Davy1_0-1719241788194.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 15:17:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Processing-on-loading-an-Excel-table-in-Qlik-Sense/m-p/2465029#M4195</guid>
      <dc:creator>Davy1</dc:creator>
      <dc:date>2024-06-24T15:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Processing on loading an Excel table in Qlik Sense</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Processing-on-loading-an-Excel-table-in-Qlik-Sense/m-p/2465172#M4199</link>
      <description>&lt;P&gt;Hi Do you want to &lt;STRONG&gt;rank the rows based on value&lt;/STRONG&gt; or &lt;STRONG&gt;based on row load order ?&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;&amp;nbsp;&lt;U&gt;&lt;STRONG&gt;Rank the rows based on value:&lt;/STRONG&gt;&lt;/U&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Autonumber(Value,Month)&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;Based on row load order:&lt;/STRONG&gt;&lt;/U&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN&gt;AutoNumber( Rowno(), Platform) as Rank&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;Use any of the above and restrict your number to load into.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Else explain a bit more.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 06:17:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Processing-on-loading-an-Excel-table-in-Qlik-Sense/m-p/2465172#M4199</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2024-06-25T06:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Processing on loading an Excel table in Qlik Sense</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Processing-on-loading-an-Excel-table-in-Qlik-Sense/m-p/2465173#M4200</link>
      <description>&lt;P&gt;I think I would do several things:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;adding aggregated values to the table&lt;/LI&gt;
&lt;LI&gt;creating a ranking with interrecord-function&lt;/LI&gt;
&lt;LI&gt;evaluating aggregations + ranks against the row-values within n flags&lt;/LI&gt;
&lt;LI&gt;filtering the dataset against the flags - in the UI and only optional in the script&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;This may look like:&lt;/P&gt;
&lt;P&gt;t1: load *,&amp;nbsp;Month &amp;amp;'|'&amp;amp; Year &amp;amp; '|' &amp;amp; Document as KEY from X;&lt;/P&gt;
&lt;P&gt;left join(t1)&lt;/P&gt;
&lt;P&gt;load KEY,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; count(Hours) as a,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; min(Hours) as b,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; max(Hours) as c,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; avg(Hours) as d,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; median(Hours) as e,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fractile(Hours, 0.05) as f,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fractile(Hours, 0.95) as g&lt;BR /&gt;resident t1 group by&amp;nbsp;KEY;&lt;/P&gt;
&lt;P&gt;t2: load *, if(KEY = previous(KEY), peek('Rank') + 1, 1) as Rank&lt;BR /&gt;resident t1 order by KEY, Hours;&lt;/P&gt;
&lt;P&gt;t3: load *, if(......) as Flag1, ....&lt;BR /&gt;resident t2:&lt;/P&gt;
&lt;P&gt;drop tables t1, t2;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 06:22:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Processing-on-loading-an-Excel-table-in-Qlik-Sense/m-p/2465173#M4200</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-06-25T06:22:59Z</dc:date>
    </item>
  </channel>
</rss>

