<?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: [set analysis] Sort by highest quantity in most recent timestamp in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-analysis-Sort-by-highest-quantity-in-most-recent-timestamp/m-p/494349#M554460</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;alrite!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;indeed a common value of TimeStamp looks like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;06-09-13 14:27&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is a mixture of digits and symbols, so text!&lt;/P&gt;&lt;P&gt;thanks for the duly explanation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Sep 2013 13:28:37 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-09-06T13:28:37Z</dc:date>
    <item>
      <title>[set analysis] Sort by highest quantity in most recent timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-Sort-by-highest-quantity-in-most-recent-timestamp/m-p/494341#M554452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am quite familiarised with the Set Analysis, but yet there is something simple that I am not able to achieve.&lt;/P&gt;&lt;P&gt;Been giving it a try in these last two weeks, but I'am giving up! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, my source is SKU, quantity, timestamp&lt;/P&gt;&lt;P&gt;What I want to visualise, in a pivot chart, is the trend of quantity available for each SKU over time.&lt;/P&gt;&lt;P&gt;And I would like the SKU to be sorted descending according to the SKU which has the highest quantity for the most recent timestamp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with something like this (in Sort&amp;gt;Expression)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13784723957457285" jivemacro_uid="_13784723957457285" modifiedtitle="true"&gt;
&lt;P&gt;=sum({$&amp;lt;BO_KPI.TimeStamp={$(=max(BO_KPI.TimeStamp))}&amp;gt;}&amp;nbsp;&amp;nbsp; BO_KPI.Qty)&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which is a pretty straightforward set analysis, but apparently I still manage to do something wrong, as SKUs are sorted in a random way (or in a way with no apparent logic).&lt;/P&gt;&lt;P&gt;Can someone pls help me sort this out?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks already!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 13:03:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-Sort-by-highest-quantity-in-most-recent-timestamp/m-p/494341#M554452</guid>
      <dc:creator />
      <dc:date>2013-09-06T13:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: [set analysis] Sort by highest quantity in most recent timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-Sort-by-highest-quantity-in-most-recent-timestamp/m-p/494342#M554453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is timestamp being used as a dimension?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 13:08:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-Sort-by-highest-quantity-in-most-recent-timestamp/m-p/494342#M554453</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-09-06T13:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: [set analysis] Sort by highest quantity in most recent timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-Sort-by-highest-quantity-in-most-recent-timestamp/m-p/494343#M554454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might get there with " "&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;=sum({$&amp;lt;BO_KPI.TimeStamp={"$(=max(BO_KPI.TimeStamp))"}&amp;gt;}&amp;nbsp;&amp;nbsp; BO_KPI.Qty) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 13:09:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-Sort-by-highest-quantity-in-most-recent-timestamp/m-p/494343#M554454</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2013-09-06T13:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: [set analysis] Sort by highest quantity in most recent timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-Sort-by-highest-quantity-in-most-recent-timestamp/m-p/494344#M554455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, the pivot is organised with TimeStamp and SKU as dimensions&lt;/P&gt;&lt;P&gt;and sum(BO_KPI.Qty) as expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 13:10:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-Sort-by-highest-quantity-in-most-recent-timestamp/m-p/494344#M554455</guid>
      <dc:creator />
      <dc:date>2013-09-06T13:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: [set analysis] Sort by highest quantity in most recent timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-Sort-by-highest-quantity-in-most-recent-timestamp/m-p/494345#M554456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does this help:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/ideas/1250"&gt;http://community.qlik.com/ideas/1250&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 13:11:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-Sort-by-highest-quantity-in-most-recent-timestamp/m-p/494345#M554456</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2013-09-06T13:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: [set analysis] Sort by highest quantity in most recent timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-Sort-by-highest-quantity-in-most-recent-timestamp/m-p/494346#M554457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have you tried adding the expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"=sum({$&amp;lt;BO_KPI.TimeStamp={$(=max(BO_KPI.TimeStamp))}&amp;gt;}&amp;nbsp; BO_KPI.Qty) "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to your table, to see the computed values used for sorting?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 13:12:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-Sort-by-highest-quantity-in-most-recent-timestamp/m-p/494346#M554457</guid>
      <dc:creator>Brice-SACCUCCI</dc:creator>
      <dc:date>2013-09-06T13:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: [set analysis] Sort by highest quantity in most recent timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-Sort-by-highest-quantity-in-most-recent-timestamp/m-p/494347#M554458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;amazing!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;two stupid quotation marks troubled me for so long!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please elaborate on what is the effect of the quot. marks?&lt;/P&gt;&lt;P&gt;thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 13:12:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-Sort-by-highest-quantity-in-most-recent-timestamp/m-p/494347#M554458</guid>
      <dc:creator />
      <dc:date>2013-09-06T13:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: [set analysis] Sort by highest quantity in most recent timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-Sort-by-highest-quantity-in-most-recent-timestamp/m-p/494348#M554459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the value inside ={ } is a text you should use quotation marks. It is not necessary if numeric. I'm guessing that your &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;BO_KPI.TimeStamp&lt;/SPAN&gt; might compare to the text of its dual value. &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I find that using dual-values in set to be confusing at times. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 13:25:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-Sort-by-highest-quantity-in-most-recent-timestamp/m-p/494348#M554459</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2013-09-06T13:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: [set analysis] Sort by highest quantity in most recent timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-Sort-by-highest-quantity-in-most-recent-timestamp/m-p/494349#M554460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;alrite!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;indeed a common value of TimeStamp looks like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;06-09-13 14:27&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is a mixture of digits and symbols, so text!&lt;/P&gt;&lt;P&gt;thanks for the duly explanation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 13:28:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-Sort-by-highest-quantity-in-most-recent-timestamp/m-p/494349#M554460</guid>
      <dc:creator />
      <dc:date>2013-09-06T13:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: [set analysis] Sort by highest quantity in most recent timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-Sort-by-highest-quantity-in-most-recent-timestamp/m-p/494350#M554461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might find this link useful:&amp;nbsp; &lt;A href="http://j.mp/164LsCO"&gt;The magic of set analysis - syntax and examples&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 13:28:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-Sort-by-highest-quantity-in-most-recent-timestamp/m-p/494350#M554461</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2013-09-06T13:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: [set analysis] Sort by highest quantity in most recent timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-Sort-by-highest-quantity-in-most-recent-timestamp/m-p/494351#M554462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Vegar, it was in my Bookmarks Bar already, guess I need to refresh my memory with it!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 13:40:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-Sort-by-highest-quantity-in-most-recent-timestamp/m-p/494351#M554462</guid>
      <dc:creator />
      <dc:date>2013-09-06T13:40:34Z</dc:date>
    </item>
  </channel>
</rss>

