<?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 aggr used in colormix2, wrong order in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/aggr-used-in-colormix2-wrong-order/m-p/236159#M87374</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello qlikview community,&lt;/P&gt;&lt;P&gt;I am trying to set the color in a pivot table using the colormix2 function.&lt;/P&gt;&lt;P&gt;The formula I am using to interpolate is, (pos-neg)/(pos+neg+neu), it will be between -1 and 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that I get an inconsistent value, I am using variables and each variable is defined like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;subfield(Concat(TOTAL &amp;lt;topicName, itemName&amp;gt; aggr(Count(emotion),topicName,itemName,emotion),' '), ' ', FieldIndex('emotion','pos'))&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;It seems that aggr messes up the order of the fields.&lt;/P&gt;&lt;P&gt;Please someone help me fix this, see the attached file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Anders&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Mar 2011 14:17:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-03-02T14:17:41Z</dc:date>
    <item>
      <title>aggr used in colormix2, wrong order</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-used-in-colormix2-wrong-order/m-p/236159#M87374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello qlikview community,&lt;/P&gt;&lt;P&gt;I am trying to set the color in a pivot table using the colormix2 function.&lt;/P&gt;&lt;P&gt;The formula I am using to interpolate is, (pos-neg)/(pos+neg+neu), it will be between -1 and 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that I get an inconsistent value, I am using variables and each variable is defined like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;subfield(Concat(TOTAL &amp;lt;topicName, itemName&amp;gt; aggr(Count(emotion),topicName,itemName,emotion),' '), ' ', FieldIndex('emotion','pos'))&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;It seems that aggr messes up the order of the fields.&lt;/P&gt;&lt;P&gt;Please someone help me fix this, see the attached file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Anders&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2011 14:17:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-used-in-colormix2-wrong-order/m-p/236159#M87374</guid>
      <dc:creator />
      <dc:date>2011-03-02T14:17:41Z</dc:date>
    </item>
  </channel>
</rss>

