<?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: Formulate dimension based on accumulation of expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Formulate-dimension-based-on-accumulation-of-expression/m-p/633483#M232369</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Post you sample app or some data in excell&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 May 2014 08:49:44 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-05-30T08:49:44Z</dc:date>
    <item>
      <title>Formulate dimension based on accumulation of expression</title>
      <link>https://community.qlik.com/t5/QlikView/Formulate-dimension-based-on-accumulation-of-expression/m-p/633482#M232368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a straight-table graph, with full accumulation in one of the columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to colour the background of the dimension depending on the value of the expression that has been accumulated. I can't seem to be able to do so. If I add an IF statement in the colour expression, I can't reference the accumulated value in the current row, nor can I use Above() or Column() to get expression values. Trying to use these functions gives me an error for that dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to base a dimensions (colour, background colour, text format) on the &lt;STRONG&gt;accumulated&lt;/STRONG&gt; value of some expression? Is there any way of getting Above() and Column() functions working with a dimension?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other than loading another column which works out an accumulated value on reload (which would mean the table must have a fixed order for it to make sense) I've got no idea where to go from here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a QVW to work with. Col1's background colour is currently based on the value of B, but I'd like it to be based on the accumulated value of B (B Accumulated in the table).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 08:35:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formulate-dimension-based-on-accumulation-of-expression/m-p/633482#M232368</guid>
      <dc:creator />
      <dc:date>2014-05-30T08:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: Formulate dimension based on accumulation of expression</title>
      <link>https://community.qlik.com/t5/QlikView/Formulate-dimension-based-on-accumulation-of-expression/m-p/633483#M232369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Post you sample app or some data in excell&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 08:49:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formulate-dimension-based-on-accumulation-of-expression/m-p/633483#M232369</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-30T08:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Formulate dimension based on accumulation of expression</title>
      <link>https://community.qlik.com/t5/QlikView/Formulate-dimension-based-on-accumulation-of-expression/m-p/633484#M232370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, sample added.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 08:57:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formulate-dimension-based-on-accumulation-of-expression/m-p/633484#M232370</guid>
      <dc:creator />
      <dc:date>2014-05-30T08:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Formulate dimension based on accumulation of expression</title>
      <link>https://community.qlik.com/t5/QlikView/Formulate-dimension-based-on-accumulation-of-expression/m-p/633485#M232371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can refer &lt;STRONG&gt;label of expression&lt;/STRONG&gt; in the expression, like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(YourLabel&amp;gt;100, green(), yellow())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="untitled.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/59837_untitled.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 08:58:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formulate-dimension-based-on-accumulation-of-expression/m-p/633485#M232371</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-05-30T08:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Formulate dimension based on accumulation of expression</title>
      <link>https://community.qlik.com/t5/QlikView/Formulate-dimension-based-on-accumulation-of-expression/m-p/633486#M232372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried =IF(BAccumulated,..,..) but that didn't work. Is there some special syntax for targeting an expression by it's label?&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: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sorry I replied before your edit. I want to reference the expression value from a dimension, not the expression itself.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 09:04:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formulate-dimension-based-on-accumulation-of-expression/m-p/633486#M232372</guid>
      <dc:creator />
      <dc:date>2014-05-30T09:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Formulate dimension based on accumulation of expression</title>
      <link>https://community.qlik.com/t5/QlikView/Formulate-dimension-based-on-accumulation-of-expression/m-p/633487#M232373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, expression like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF(Aggr(RangeSum(Above(Sum(Col2),0,&lt;STRONG&gt;count( total distinct Col1)&lt;/STRONG&gt;)),Col1)&amp;gt;100,Green(),Red())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA, and be careful of sort order as well, because that matters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 10:32:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formulate-dimension-based-on-accumulation-of-expression/m-p/633487#M232373</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-05-30T10:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Formulate dimension based on accumulation of expression</title>
      <link>https://community.qlik.com/t5/QlikView/Formulate-dimension-based-on-accumulation-of-expression/m-p/633488#M232374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, this works really well, thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I have to aggregate in order of A? Can I change the order of the aggregation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 11:08:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formulate-dimension-based-on-accumulation-of-expression/m-p/633488#M232374</guid>
      <dc:creator />
      <dc:date>2014-05-30T11:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Formulate dimension based on accumulation of expression</title>
      <link>https://community.qlik.com/t5/QlikView/Formulate-dimension-based-on-accumulation-of-expression/m-p/633489#M232375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you change the sort order to Z-&amp;gt;A, you have to use Below() ins tead of Above(), like:&lt;/P&gt;&lt;P&gt;IF(Aggr(RangeSum(&lt;STRONG&gt;Below&lt;/STRONG&gt;(Sum(Col2),0,count( total distinct Col1&lt;STRONG&gt;)&lt;/STRONG&gt;)),Col1)&amp;gt;100,Green(),Red())&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 11:13:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formulate-dimension-based-on-accumulation-of-expression/m-p/633489#M232375</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-05-30T11:13:55Z</dc:date>
    </item>
  </channel>
</rss>

