<?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: Rank a Time dimension by multiple dimensions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rank-a-Time-dimension-by-multiple-dimensions/m-p/1554515#M744406</link>
    <description>What is your expected output?</description>
    <pubDate>Sat, 09 Mar 2019 04:27:33 GMT</pubDate>
    <dc:creator>vishsaggi</dc:creator>
    <dc:date>2019-03-09T04:27:33Z</dc:date>
    <item>
      <title>Rank a Time dimension by multiple dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-a-Time-dimension-by-multiple-dimensions/m-p/1554501#M744405</link>
      <description>&lt;P&gt;I am trying to set up a dashboard that displays the start and end times for our dashboard runs. The problem is that we have dashboards that sometimes are run multiple times a day. I need add the option (via a button) to filter our line chart to display only the first run per day per dashboard.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See example below:&lt;/P&gt;&lt;P&gt;Dashboard_Name | Start_TimeDate&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| End_TimeDate&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xyz.qvw |&amp;nbsp; 2019-03-07 07:21.12 |&amp;nbsp;2019-03-07 07:22.12&amp;nbsp; &amp;nbsp; &amp;lt;--&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xyz.qvw |&amp;nbsp; 2019-03-08 07:21.12 |&amp;nbsp;2019-03-08 07:22.12&amp;nbsp; &amp;nbsp; &amp;lt;--&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xyz.qvw |&amp;nbsp; 2019-03-08 08:34.01 |&amp;nbsp;2019-03-08 35:22.01&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xyz.qvw |&amp;nbsp; 2019-03-08 10:15.36 |&amp;nbsp;2019-03-08 10:16.36&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xyz.qvw |&amp;nbsp; 2019-03-09 07:21.12 |&amp;nbsp;2019-03-09 07:22.12&amp;nbsp; &amp;nbsp; &amp;lt;--&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried setting up a rank column in order to Identify the first run per day for each dashboard, but it's not working:&lt;/P&gt;&lt;P&gt;=AGGR(RANK(MIN(Start_TimeDate),1,2), Dashboard_Name)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I accomplish this on the UI side?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:13:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-a-Time-dimension-by-multiple-dimensions/m-p/1554501#M744405</guid>
      <dc:creator>Cmurphy55</dc:creator>
      <dc:date>2024-11-16T04:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Rank a Time dimension by multiple dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-a-Time-dimension-by-multiple-dimensions/m-p/1554515#M744406</link>
      <description>What is your expected output?</description>
      <pubDate>Sat, 09 Mar 2019 04:27:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-a-Time-dimension-by-multiple-dimensions/m-p/1554515#M744406</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2019-03-09T04:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Rank a Time dimension by multiple dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-a-Time-dimension-by-multiple-dimensions/m-p/1554611#M744407</link>
      <description>&lt;P&gt;An example output is displayed below. Essentially, I want an expression column that ranks each individual dashboard (on a per day basis) by the earliest time that was run. As you can see below, dashboard abc.qvw reloaded on the 7th of March 2 times. Dashboard xyz.qvw ALSO reloaded on March 7th, but ONLY 1 time. The rank column needs to be able to assign a &lt;STRONG&gt;value of 1 to the &lt;EM&gt;earliest&lt;/EM&gt; run of &lt;U&gt;EACH&lt;/U&gt; Dashboard &lt;U&gt;PER DAY&lt;/U&gt;&lt;/STRONG&gt;. That way on March 7th, xyz.qvw isn't given a rank of 1, and abc.qvw isn't given a rank of 2 and 3 that day for each of its respective runs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;I'm not sure how to set up the code for that in the expression field in my straight table.&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dashboard_Name | Start_TimeDate&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| End_TimeDate&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; Rank_Column&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xyz.qvw |&amp;nbsp; 2019-03-07 07:21.12 |&amp;nbsp;2019-03-07 07:22.12&amp;nbsp; |&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; abc.qvw |&amp;nbsp; 2019-03-07 07:33.11 |&amp;nbsp;2019-03-07 07:34.12&amp;nbsp; |&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; abc.qvw |&amp;nbsp; 2019-03-07 08:01.42 |&amp;nbsp;2019-03-07 08:03.01&amp;nbsp; |&amp;nbsp; -&amp;nbsp; &amp;nbsp; &amp;nbsp;(or 2)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xyz.qvw |&amp;nbsp; 2019-03-08 07:21.12 |&amp;nbsp;2019-03-08 07:22.12&amp;nbsp; |&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xyz.qvw |&amp;nbsp; 2019-03-08 08:34.01 |&amp;nbsp;2019-03-08 35:22.01&amp;nbsp; |&amp;nbsp; -&amp;nbsp; &amp;nbsp; &amp;nbsp;(or 2)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xyz.qvw |&amp;nbsp; 2019-03-08 10:15.36 |&amp;nbsp;2019-03-08 10:16.36&amp;nbsp; |&amp;nbsp; -&amp;nbsp; &amp;nbsp; &amp;nbsp;(or 3)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xyz.qvw |&amp;nbsp; 2019-03-09 07:21.12 |&amp;nbsp;2019-03-09 07:22.12&amp;nbsp; |&amp;nbsp; 1&lt;/P&gt;</description>
      <pubDate>Sun, 10 Mar 2019 18:24:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-a-Time-dimension-by-multiple-dimensions/m-p/1554611#M744407</guid>
      <dc:creator>Cmurphy55</dc:creator>
      <dc:date>2019-03-10T18:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Rank a Time dimension by multiple dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-a-Time-dimension-by-multiple-dimensions/m-p/1554615#M744408</link>
      <description>Can you try this?&lt;BR /&gt;Script Solution:&lt;BR /&gt;&lt;BR /&gt;LOAD *, Autonumber(DayID&amp;amp;StartDate,DayID&amp;amp;Dashboard_Name) AS Rank_Column;&lt;BR /&gt;Load *, TImestamp(Timestamp#(Start_TimeDate, 'YYYY-MM-DD hh:mm.ss'), 'YYYY-MM-DD hh:mm:ss') AS StartDate,&lt;BR /&gt;Day(TImestamp(Timestamp#(Start_TimeDate, 'YYYY-MM-DD hh:mm.ss'), 'YYYY-MM-DD hh:mm:ss')) AS DayID INLINE [&lt;BR /&gt;Dashboard_Name | Start_TimeDate| End_TimeDate&lt;BR /&gt;xyz.qvw | 2019-03-07 07:21.12 | 2019-03-07 07:22.12&lt;BR /&gt;abc.qvw | 2019-03-07 07:33.11 | 2019-03-07 07:34.12&lt;BR /&gt;abc.qvw | 2019-03-07 08:01.42 | 2019-03-07 08:03.01&lt;BR /&gt;xyz.qvw | 2019-03-08 07:21.12 | 2019-03-08 07:22.12&lt;BR /&gt;xyz.qvw | 2019-03-08 08:34.01 | 2019-03-08 35:22.01&lt;BR /&gt;xyz.qvw | 2019-03-08 10:15.36 | 2019-03-08 10:16.36&lt;BR /&gt;xyz.qvw | 2019-03-09 07:21.12 | 2019-03-09 07:22.12&lt;BR /&gt;] (delimiter is '|');&lt;BR /&gt;&lt;BR /&gt;Then use this Rank_Column in your straight table.&lt;BR /&gt;&lt;BR /&gt;OR use the same script with below as your expression in your straight table like&lt;BR /&gt;&lt;BR /&gt;UI Solution:&lt;BR /&gt;= Aggr(Rank(-StartDate, 1,4), Dashboard_Name, DayID,StartDate)</description>
      <pubDate>Sun, 10 Mar 2019 18:56:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-a-Time-dimension-by-multiple-dimensions/m-p/1554615#M744408</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2019-03-10T18:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Rank a Time dimension by multiple dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-a-Time-dimension-by-multiple-dimensions/m-p/1555575#M744409</link>
      <description>&lt;P&gt;I attempted your solution and it partially worked. The only problem is that my data contains more than one year, so instead, I used the FLOOR function instead of the date. I also was NOT able to get the script changes to work by utilizing an empty load statement like you did, instead, I had to set up my table as follows, which ended up working:&lt;/P&gt;&lt;P&gt;[Qlikview]:&lt;/P&gt;&lt;P&gt;LOAD @1 as Q_ID,&lt;BR /&gt;@2 as Dashboard_Name,&lt;BR /&gt;@3 as Start_TimeDate,&lt;BR /&gt;@4 as End_TimeDate,&lt;BR /&gt;@5 as Environment,&lt;/P&gt;&lt;P&gt;... some additional columns ...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Timestamp(Timestamp#(@3, 'YYYY-MM-DD hh:mm:ss'), 'YYYY-MM-DD hh:mm:ss') AS StartDate,&lt;BR /&gt;FLOOR(Timestamp(Timestamp#(@3, 'YYYY-MM-DD hh:mm:ss'), 'YYYY-MM-DD hh:mm:ss')) AS DayID,&lt;BR /&gt;Autonumber(FLOOR(Timestamp(Timestamp#(@3, 'YYYY-MM-DD hh:mm:ss'), 'YYYY-MM-DD hh:mm:ss'))&amp;amp;Timestamp(Timestamp#(@3, 'YYYY-MM-DD hh:mm:ss'), 'YYYY-MM-DD hh:mm:ss'),&lt;BR /&gt;FLOOR(Timestamp(Timestamp#(@3, 'YYYY-MM-DD hh:mm:ss'), 'YYYY-MM-DD hh:mm:ss'))&amp;amp;@2)&lt;BR /&gt;AS Rank_Column&lt;BR /&gt;FROM&lt;BR /&gt;[location];&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 17:19:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-a-Time-dimension-by-multiple-dimensions/m-p/1555575#M744409</guid>
      <dc:creator>Cmurphy55</dc:creator>
      <dc:date>2019-03-12T17:19:38Z</dc:date>
    </item>
  </channel>
</rss>

