<?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: Simple (?) Index in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Simple-Index/m-p/327235#M1183542</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm still unclear on what you mean by first, but you MAY be looking for the top() function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;(Sum(LineValue)/Sum(Quantity))/(&lt;SPAN style="color: #ff0000; font-size: 12pt;"&gt;&lt;STRONG&gt;Top&lt;/STRONG&gt;&lt;/SPAN&gt;(Sum(LineValue)/Sum(Quantity))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Nov 2011 22:27:40 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2011-11-17T22:27:40Z</dc:date>
    <item>
      <title>Simple (?) Index</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-Index/m-p/327234#M1183541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OK... so I've got a line on a chart that does this across a time axis...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #ff00ff;"&gt;Sum&lt;/SPAN&gt;(&lt;SPAN style="color: #339966;"&gt;LineValue&lt;/SPAN&gt;)/&lt;SPAN style="color: #ff00ff;"&gt;Sum&lt;/SPAN&gt;(&lt;SPAN style="color: #339966;"&gt;Quantity&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;So far, so easy peasy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want another line that does this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #ff00ff;"&gt;&lt;SPAN style="color: #ff0000;"&gt;(&lt;/SPAN&gt;Sum&lt;/SPAN&gt;(&lt;SPAN style="color: #339966;"&gt;LineValue&lt;/SPAN&gt;)/&lt;SPAN style="color: #ff00ff;"&gt;Sum&lt;/SPAN&gt;(&lt;SPAN style="color: #339966;"&gt;Quantity&lt;/SPAN&gt;)&lt;SPAN style="color: #ff0000;"&gt;)/(FIRST(&lt;/SPAN&gt;&lt;SPAN style="color: #ff00ff;"&gt;Sum&lt;/SPAN&gt;(&lt;SPAN style="color: #339966;"&gt;LineValue&lt;/SPAN&gt;)/&lt;SPAN style="color: #ff00ff;"&gt;Sum&lt;/SPAN&gt;(&lt;SPAN style="color: #339966;"&gt;Quantity&lt;/SPAN&gt;)&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;where the denominator is the first calculated value - and the selection of "FIRST" should be variable as the earliest in the current dataset, not defined - and not necessarily the "First" function in QV).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;Should be easy surely... but I just can't seem to crack some of what I expect to be the basic QV functions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;Help yet again, please.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;&lt;EM&gt;QlikView for Windows Version 9.00.7646.9 SR6&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2011 14:49:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-Index/m-p/327234#M1183541</guid>
      <dc:creator />
      <dc:date>2011-11-17T14:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Simple (?) Index</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-Index/m-p/327235#M1183542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm still unclear on what you mean by first, but you MAY be looking for the top() function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;(Sum(LineValue)/Sum(Quantity))/(&lt;SPAN style="color: #ff0000; font-size: 12pt;"&gt;&lt;STRONG&gt;Top&lt;/STRONG&gt;&lt;/SPAN&gt;(Sum(LineValue)/Sum(Quantity))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2011 22:27:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-Index/m-p/327235#M1183542</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-11-17T22:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: Simple (?) Index</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-Index/m-p/327236#M1183543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For clarity (I hope), my dataset is split into periods, and I want to index each period based on the first period in the selected data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll give Top a try .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 08:57:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-Index/m-p/327236#M1183543</guid>
      <dc:creator />
      <dc:date>2011-11-18T08:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: Simple (?) Index</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-Index/m-p/327237#M1183544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Georgia; color: black; font-size: 10pt;"&gt;Making progress, but still got a couple of issues, which I will try to explain.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Georgia; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 10pt; font-family: Georgia;"&gt;Thanks John, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 10pt; font-family: Georgia;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Georgia; color: black; font-size: 10pt;"&gt;Using Top, I have managed to achieve&lt;/SPAN&gt;&lt;SPAN style="font-family: Georgia; color: black; font-size: 10pt;"&gt; the calculation I needed (defined as an Expression called "Index") as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-family: Georgia; font-size: 10pt;"&gt;﻿&lt;/SPAN&gt;&lt;SPAN style="font-family: Georgia; color: black; font-size: 10pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: fuchsia; font-size: 10pt; font-family: Georgia;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt; font-family: Georgia;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #339966; font-size: 10pt; font-family: Georgia;"&gt;LineValue&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt; font-family: Georgia;"&gt;)/&lt;/SPAN&gt;&lt;SPAN style="color: fuchsia; font-size: 10pt; font-family: Georgia;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt; font-family: Georgia;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #339966; font-size: 10pt; font-family: Georgia;"&gt;Quantity&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt; font-family: Georgia;"&gt;))/(&lt;/SPAN&gt;&lt;SPAN style="color: fuchsia; font-size: 10pt; font-family: Georgia;"&gt;Top&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt; font-family: Georgia;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: fuchsia; font-size: 10pt; font-family: Georgia;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt; font-family: Georgia;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #339966; font-size: 10pt; font-family: Georgia;"&gt;LineValue&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt; font-family: Georgia;"&gt;))/&lt;/SPAN&gt;&lt;SPAN style="color: fuchsia; font-size: 10pt; font-family: Georgia;"&gt;Top&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt; font-family: Georgia;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: fuchsia; font-size: 10pt; font-family: Georgia;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt; font-family: Georgia;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #339966; font-size: 10pt; font-family: Georgia;"&gt;Quantity&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt; font-family: Georgia;"&gt;))))-&lt;/SPAN&gt;&lt;SPAN style="color: #ff6600; font-size: 10pt; font-family: Georgia;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Georgia; color: black; font-size: 10pt;"&gt;But this seems only to work in a Pivot Table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Georgia; color: black; font-size: 10pt;"&gt;Perhaps this is because of the Dimensions that I am using?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 10pt; font-family: 'Courier New';"&gt;﻿&lt;/SPAN&gt;&lt;SPAN style="font-family: Georgia; font-size: 10pt;"&gt;I have a time Dimension called YearPeriod, and a Drill Down Group comprising Group, Type and Product.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;﻿&lt;/SPAN&gt;&lt;SPAN style="font-family: Georgia; font-size: 10pt;"&gt;The Pivot Table works if I have the Dimensions in the order "Group Drill Down" and "YearPeriod".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Georgia;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;﻿﻿&lt;/SPAN&gt;&lt;SPAN style="font-family: Georgia; font-size: 10pt;"&gt;It seems the number of expressions is immaterial, because, as I say, the table does everything I require.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Georgia; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;﻿﻿&lt;/SPAN&gt;&lt;SPAN style="font-family: Georgia; font-size: 10pt;"&gt;However, if I change properties and make this into a Line Chart the Index Expression fails and the drill down ceases to work also.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Georgia; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;﻿﻿&lt;/SPAN&gt;&lt;SPAN style="font-family: Georgia; font-size: 10pt;"&gt;Any help grat&lt;/SPAN&gt;&lt;SPAN style="font-family: Georgia; font-size: 10pt;"&gt;efully received.&lt;/SPAN&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 10:42:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-Index/m-p/327237#M1183544</guid>
      <dc:creator />
      <dc:date>2011-11-18T10:42:21Z</dc:date>
    </item>
  </channel>
</rss>

