<?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: Comparing ranked sales in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Comparing-ranked-sales/m-p/484776#M1135133</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, this does not rank anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It just creates a counter, with as many elements as distinct Events exists.&lt;/P&gt;&lt;P&gt;I need this for the rank dimension (there might be other solutions, but I failed to get these running right now).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dimension is just a number 1 - 7 in this setting. The ranking and filtering of the expression results is all done in the expressions itself (that's different to your first version, where you rank and filter the event in the dimension).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I needed to create a dimension that this independent of a certain Event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this make things more clear?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Oct 2013 21:39:30 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2013-10-17T21:39:30Z</dc:date>
    <item>
      <title>Comparing ranked sales</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-ranked-sales/m-p/484771#M1135128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the task of comparing two years and the way I want to do it is to compare the top grossing event in one year to the top grossing event in the other year.&amp;nbsp; My thought was to create two charts, rank the events by revenue and then compare them in a third chart, but while creating the third chart I realized I was out of my league.&amp;nbsp; If I do it this way is it possible to bring the #1 grossing event from both years into the third chart and get a difference between them?&amp;nbsp; I basically want to show the rank, event, total and then the difference between the #1 in the first year to the #1 in the second year and so on...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to do this in one chart?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached a simple example of what I've started with, but can't figure out how to get the comparison to work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2013 17:08:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-ranked-sales/m-p/484771#M1135128</guid>
      <dc:creator />
      <dc:date>2013-10-17T17:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing ranked sales</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-ranked-sales/m-p/484772#M1135129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like attached?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2013 17:42:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-ranked-sales/m-p/484772#M1135129</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-10-17T17:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing ranked sales</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-ranked-sales/m-p/484773#M1135130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is very close.&amp;nbsp; Can the other events be included as well?&amp;nbsp; If I were to do it in excel it would look something like the table below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 352px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="36"&gt;Rank&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="67"&gt;Event YR 1&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;YR 1 Total&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="67"&gt;Event YR 2&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="53"&gt;Y2 Total&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="65"&gt;Difference&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none;"&gt;10370&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none;"&gt;10546&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;-176&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Comp&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;2230&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Comp&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;4040&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;-1810&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;CompC&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;2038&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;CompB&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;2030&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;CompA&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;2024&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;CompC&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;2022&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;4&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;CompB&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;2020&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;CompA&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;2000&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;5&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Comp2&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;1820&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Comp3&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;230&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1590&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;6&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Comp4&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;238&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Comp2&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;224&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;14&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2013 17:50:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-ranked-sales/m-p/484773#M1135130</guid>
      <dc:creator />
      <dc:date>2013-10-17T17:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Comparing ranked sales</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-ranked-sales/m-p/484774#M1135131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Finally...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2013 20:56:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-ranked-sales/m-p/484774#M1135131</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-10-17T20:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing ranked sales</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-ranked-sales/m-p/484775#M1135132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see how you did this, but I don't fully understand what it's doing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the load script you wrote "LOAD DISTINCT autonumber(Event) as RankID Resident Prices".&amp;nbsp; Would you mind breaking down what it does?&amp;nbsp; How does it rank the entire event rather than the individual 'sales'?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2013 21:32:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-ranked-sales/m-p/484775#M1135132</guid>
      <dc:creator />
      <dc:date>2013-10-17T21:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing ranked sales</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-ranked-sales/m-p/484776#M1135133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, this does not rank anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It just creates a counter, with as many elements as distinct Events exists.&lt;/P&gt;&lt;P&gt;I need this for the rank dimension (there might be other solutions, but I failed to get these running right now).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dimension is just a number 1 - 7 in this setting. The ranking and filtering of the expression results is all done in the expressions itself (that's different to your first version, where you rank and filter the event in the dimension).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I needed to create a dimension that this independent of a certain Event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this make things more clear?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2013 21:39:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-ranked-sales/m-p/484776#M1135133</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-10-17T21:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing ranked sales</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-ranked-sales/m-p/484777#M1135135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Stefan,&amp;nbsp; I think I understand what it's doing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2013 21:58:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-ranked-sales/m-p/484777#M1135135</guid>
      <dc:creator />
      <dc:date>2013-10-17T21:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing ranked sales</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-ranked-sales/m-p/484778#M1135137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I implement this into my production data it runs really slow.&amp;nbsp; Is there a way to speed it up?&amp;nbsp; The load works just fine, but the application itself updates very slow.&amp;nbsp; I have over 5,000 events in my data and over 20,000,000 records of sales data which I assume is causing the slowness.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas are appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2013 15:33:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-ranked-sales/m-p/484778#M1135137</guid>
      <dc:creator />
      <dc:date>2013-10-18T15:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing ranked sales</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-ranked-sales/m-p/484779#M1135139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see. Using advanced aggregation in combination with the RankID data island is not showing best performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't see a better chart based solution right now. If your rank table does not need to be sensitive to selections (e.g. selections in Product), you can use a script based approach, calculating the rank in the load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: Do you need to show all 5000 events in the comprison table? If not, it might be possible reduce the work needed to create the table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 11:39:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-ranked-sales/m-p/484779#M1135139</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-10-24T11:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing ranked sales</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-ranked-sales/m-p/484780#M1135141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm actually only showing about 40 events from each year so 80 in total at any one time.&amp;nbsp; I think the load script approach might be my best bet.&amp;nbsp; Thanks for your help Stefan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 14:00:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-ranked-sales/m-p/484780#M1135141</guid>
      <dc:creator />
      <dc:date>2013-10-24T14:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Comparing ranked sales</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-ranked-sales/m-p/484781#M1135143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This version tryies to minimize the calculation load based on the number of ranks you need to display (variable vMaxRank in script).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haven't really tested if this improves or impairs the performance, just give it a try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 14:19:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-ranked-sales/m-p/484781#M1135143</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-10-24T14:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Comparing ranked sales</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-ranked-sales/m-p/484782#M1135145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And this does a script based pre-aggregation and ranking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should have the best performance (and expressions are much more simple), but you are losing the ability to filter dynamically by making additional selections).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 14:31:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-ranked-sales/m-p/484782#M1135145</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-10-24T14:31:26Z</dc:date>
    </item>
  </channel>
</rss>

