<?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 above function and accumulated expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/above-function-and-accumulated-expression/m-p/216837#M70112</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;roberto.figaroli wrote:Anyway I would like to attach an example I hope will clarify everything,but i don't know how to do that. Can you explain me?&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;When you click on "Reply", you should see three tabs - Compose, Options and Preview. The Options tab allows you to add a file attachment. That's not available if you use "Quick Reply", though. You have to use "Reply".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Apr 2011 16:51:19 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2011-04-15T16:51:19Z</dc:date>
    <item>
      <title>above function and accumulated expression</title>
      <link>https://community.qlik.com/t5/QlikView/above-function-and-accumulated-expression/m-p/216833#M70108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all!&lt;BR /&gt;I have the following problem:&lt;BR /&gt;i should create a straight table with one dimension,an expression like sum(Sales),another one&lt;BR /&gt;like sum(Sales)/sum(total Sales) with the accumulation (obtained for instance selecting the flag&lt;BR /&gt;"Full Accumulation" in the Expressions tab of the straight table properties) and a last column that should be&lt;BR /&gt;something like if(column(2)&amp;lt;=0.85,'A',if(column(2)&amp;lt;=0.95,'B','C')) and lets' call this last expression Matrix,for future reference.Notice that column(2) refers to the expression sum(Sales)/sum(total Sales) with the full accumulation.&lt;BR /&gt;The problem is that if i create the straight table like that, the column Matrix read for the column(2) the value&lt;BR /&gt;sum(Sales)/sum(total Sales) without the accumulation,that is the accumulation is just a visual data,but not the&lt;BR /&gt;real data referred by the "Matrix" expression.&lt;BR /&gt;I've tried using the following expression "rangesum(above(sum(Sales),0,NoOfRows()))/sum(total Sales)" to get the&lt;BR /&gt;possibility to have the shown data equal to the real data referred by column(2). This work but the problem is that i should&lt;BR /&gt;order the straigth table on the base of the sum(Sales) column and even though the sort tab gives the possibility to order in that way,actually the "above" function used in the "Matrix" expression forces the sort order first on the dimension.&lt;BR /&gt;Has anyone of you encountered a problem like that and did you manage to solve it?&lt;BR /&gt;Thanks in advance!&lt;BR /&gt;Roberto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2011 17:43:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/above-function-and-accumulated-expression/m-p/216833#M70108</guid>
      <dc:creator />
      <dc:date>2011-04-14T17:43:27Z</dc:date>
    </item>
    <item>
      <title>above function and accumulated expression</title>
      <link>https://community.qlik.com/t5/QlikView/above-function-and-accumulated-expression/m-p/216834#M70109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe sort the table exactly like it needs to be sorted, then uncheck "Allow Interactive Sort" so that the users can't break the accumulation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2011 01:22:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/above-function-and-accumulated-expression/m-p/216834#M70109</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-04-15T01:22:23Z</dc:date>
    </item>
    <item>
      <title>above function and accumulated expression</title>
      <link>https://community.qlik.com/t5/QlikView/above-function-and-accumulated-expression/m-p/216835#M70110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've tried,but it doesn't work. I think it's because of the above function,with rank(sum(Sales)/sum(total Sales) i am able to use the value&lt;/P&gt;&lt;P&gt;to create the rigth flag 'A','B','C',but just because for the selection done i already know, for instance, that the rank value 20 corresponds to the 85% of the sum(Sales)/sum(total sales) expression. How can i know "a priori" the exact value given by the rank function for the (for instance) percentage 85% dinamically so that for every selection done by the user i can flag correctly 'A','B' or 'C'?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2011 09:05:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/above-function-and-accumulated-expression/m-p/216835#M70110</guid>
      <dc:creator />
      <dc:date>2011-04-15T09:05:55Z</dc:date>
    </item>
    <item>
      <title>above function and accumulated expression</title>
      <link>https://community.qlik.com/t5/QlikView/above-function-and-accumulated-expression/m-p/216836#M70111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all!&lt;BR /&gt;I've found the solution: it's necessary to use a calculated dimension like aggr(sum(Sales),dimension)&amp;amp;'_'&amp;amp;dimension,add an expression that will be the simple dimension itself, hide the column corrisponding to the calculated dimension and imposing a decreasing sort order for the calculated dimension on the base of the following expression left(aggr(sum(Sales),dimension)&amp;amp;'_'&amp;amp;dimension,index(aggr(sum(Sales),dimension)&amp;amp;'_'&amp;amp;dimension,'_')-1).&lt;BR /&gt;Anyway I would like to attach an example I hope will clarify everything,but i don't know how to do that. Can you explain me?&lt;/P&gt;&lt;P&gt;Thanks!&lt;BR /&gt;Cheers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2011 14:10:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/above-function-and-accumulated-expression/m-p/216836#M70111</guid>
      <dc:creator />
      <dc:date>2011-04-15T14:10:13Z</dc:date>
    </item>
    <item>
      <title>above function and accumulated expression</title>
      <link>https://community.qlik.com/t5/QlikView/above-function-and-accumulated-expression/m-p/216837#M70112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;roberto.figaroli wrote:Anyway I would like to attach an example I hope will clarify everything,but i don't know how to do that. Can you explain me?&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;When you click on "Reply", you should see three tabs - Compose, Options and Preview. The Options tab allows you to add a file attachment. That's not available if you use "Quick Reply", though. You have to use "Reply".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2011 16:51:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/above-function-and-accumulated-expression/m-p/216837#M70112</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-04-15T16:51:19Z</dc:date>
    </item>
    <item>
      <title>above function and accumulated expression</title>
      <link>https://community.qlik.com/t5/QlikView/above-function-and-accumulated-expression/m-p/216838#M70113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok!&lt;/P&gt;&lt;P&gt;Here you can find the example!&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 08:53:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/above-function-and-accumulated-expression/m-p/216838#M70113</guid>
      <dc:creator />
      <dc:date>2011-04-18T08:53:37Z</dc:date>
    </item>
  </channel>
</rss>

