<?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 Dynamic Pivot Table Background Color based on Dimensionality in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Dynamic-Pivot-Table-Background-Color-based-on-Dimensionality/m-p/1929446#M76523</link>
    <description>&lt;P&gt;Is it possible to compare the second level of a pivot table (dimensionality = 2) to its parent value (dimensionality = 1).&amp;nbsp; In the image below, I am looking to compare the values that fall under "consumer packaging" to values that fall underneath. For example, compare APAC (0.00) to Consumer Packaging (15.79), Europe (33.05) to Consumer Packaging (15.79), etc...&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried using the formula below but need to compare to a dynamic value opposed to a constant ( &amp;gt;20).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=if(Dimensionality() = 2, if(( Test) &amp;gt; 20 ,green(), red()))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aknabe1_0-1652296116914.png" style="width: 532px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/79213iA69A055B6CEE4ACD/image-dimensions/532x398?v=v2" width="532" height="398" role="button" title="aknabe1_0-1652296116914.png" alt="aknabe1_0-1652296116914.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 May 2022 19:13:15 GMT</pubDate>
    <dc:creator>aknabe1</dc:creator>
    <dc:date>2022-05-11T19:13:15Z</dc:date>
    <item>
      <title>Dynamic Pivot Table Background Color based on Dimensionality</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-Pivot-Table-Background-Color-based-on-Dimensionality/m-p/1929446#M76523</link>
      <description>&lt;P&gt;Is it possible to compare the second level of a pivot table (dimensionality = 2) to its parent value (dimensionality = 1).&amp;nbsp; In the image below, I am looking to compare the values that fall under "consumer packaging" to values that fall underneath. For example, compare APAC (0.00) to Consumer Packaging (15.79), Europe (33.05) to Consumer Packaging (15.79), etc...&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried using the formula below but need to compare to a dynamic value opposed to a constant ( &amp;gt;20).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=if(Dimensionality() = 2, if(( Test) &amp;gt; 20 ,green(), red()))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aknabe1_0-1652296116914.png" style="width: 532px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/79213iA69A055B6CEE4ACD/image-dimensions/532x398?v=v2" width="532" height="398" role="button" title="aknabe1_0-1652296116914.png" alt="aknabe1_0-1652296116914.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 19:13:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-Pivot-Table-Background-Color-based-on-Dimensionality/m-p/1929446#M76523</guid>
      <dc:creator>aknabe1</dc:creator>
      <dc:date>2022-05-11T19:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Pivot Table Background Color based on Dimensionality</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-Pivot-Table-Background-Color-based-on-Dimensionality/m-p/1929478#M76526</link>
      <description>&lt;P&gt;if what you want is to compare the result for the parent against the child, you can use aggregate.&amp;nbsp; and assuming you dont want the parent highlighted:&lt;BR /&gt;&lt;BR /&gt;if(Dimensionality()&amp;gt;1, if( yourExpressionHere &amp;gt; AGGR(yourExpressionHere, parentFieldHere), green(), red()))&lt;/P&gt;
&lt;P&gt;for example if your fields are CATEGORY as dimension1 and MEASURE as your value:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;if(Dimensionality()&amp;gt;1, if(avg(MEASURE) &amp;gt; AGGR( avg(MEASURE), [CATEGORY]), green(), red()))&lt;/P&gt;
&lt;P&gt;hope that makes sense&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 20:08:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-Pivot-Table-Background-Color-based-on-Dimensionality/m-p/1929478#M76526</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2022-05-11T20:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Pivot Table Background Color based on Dimensionality</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-Pivot-Table-Background-Color-based-on-Dimensionality/m-p/1929479#M76527</link>
      <description>&lt;P&gt;of course you need to decide if its a &amp;gt;= comparison - whats the color when the same&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 20:06:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-Pivot-Table-Background-Color-based-on-Dimensionality/m-p/1929479#M76527</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2022-05-11T20:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Pivot Table Background Color based on Dimensionality</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-Pivot-Table-Background-Color-based-on-Dimensionality/m-p/1929485#M76528</link>
      <description>&lt;P&gt;As below&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=if(Dimensionality() = 2, if( AVG(measure)&amp;gt;AVG(total&amp;lt;dimension 1&amp;gt;measure) ,green(), red()))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Replace AVG and measure with whatever your expression is&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Replace dimension1 with whatever your first dimension name is&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 20:17:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-Pivot-Table-Background-Color-based-on-Dimensionality/m-p/1929485#M76528</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-05-11T20:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Pivot Table Background Color based on Dimensionality</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-Pivot-Table-Background-Color-based-on-Dimensionality/m-p/1929527#M76531</link>
      <description>&lt;P&gt;Thank you this worked! I noticed I had to use field values and not measures.&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 21:50:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-Pivot-Table-Background-Color-based-on-Dimensionality/m-p/1929527#M76531</guid>
      <dc:creator>aknabe1</dc:creator>
      <dc:date>2022-05-11T21:50:13Z</dc:date>
    </item>
  </channel>
</rss>

