<?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: Color Coding Logic for Pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Color-Coding-Logic-for-Pivot-table/m-p/1657035#M507282</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;If you used the expression&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;If( Percentage &amp;lt; Sum(TOTAL Percentage), red,
If( Percentage &amp;gt;= Sum(TOTAL Percentage) and Sum(Percentage) &amp;lt; Sum(TOTAL &amp;lt;Col1&amp;gt;, amber,
If( Percentage &amp;gt;= Sum(TOTAL &amp;lt;Col1&amp;gt;, green)))&lt;/LI-CODE&gt;&lt;P&gt;It won't work because it is still a &lt;EM&gt;logic template&lt;/EM&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;What expression are you using in your "Percentage" expression? You should use it instead of Sum(Total Percentage)&lt;/LI&gt;&lt;LI&gt;What dimension are you using as "Col1"?&lt;/LI&gt;&lt;LI&gt;Use proper color functions like red(), green(), yellow(), RGB(255,0,0)...&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jaime.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Dec 2019 12:01:48 GMT</pubDate>
    <dc:creator>jaibau1993</dc:creator>
    <dc:date>2019-12-12T12:01:48Z</dc:date>
    <item>
      <title>Color Coding Logic for Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Color-Coding-Logic-for-Pivot-table/m-p/1656880#M507279</link>
      <description>&lt;P&gt;hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Please help me to apply the &lt;STRONG&gt;Red, Amber ,Green Color&lt;/STRONG&gt; Logic for the &lt;STRONG&gt;Percentage&lt;/STRONG&gt; column.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Red&lt;/STRONG&gt; :&amp;nbsp; &amp;nbsp; if Percentage Column data &lt;STRONG&gt;&amp;lt;&lt;/STRONG&gt; Overall Total {&lt;STRONG&gt; 117%&lt;/STRONG&gt;}&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Amber&lt;/STRONG&gt;:&amp;nbsp; &amp;nbsp; if&amp;nbsp; &amp;nbsp; Percentage Column data &lt;STRONG&gt;&amp;gt;=&lt;/STRONG&gt;&amp;nbsp; Overall Total&amp;nbsp; {&lt;STRONG&gt;117%&lt;/STRONG&gt; }&amp;nbsp; &lt;STRONG&gt;and&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Percentage Column data &lt;STRONG&gt;&amp;lt;&lt;/STRONG&gt;&amp;nbsp; [( max( subTotal column Col1) {&lt;STRONG&gt;126.5%&lt;/STRONG&gt;} ]&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Green&lt;/STRONG&gt;:&amp;nbsp;&amp;nbsp; if&amp;nbsp; &amp;nbsp; Percentage Column data &lt;STRONG&gt;&amp;gt; =&lt;/STRONG&gt; ( max( subTotal column Col1) {&lt;STRONG&gt;126.5%&lt;/STRONG&gt;}&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25401i57E21EF36A7A4CE4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:28:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-Coding-Logic-for-Pivot-table/m-p/1656880#M507279</guid>
      <dc:creator>Prateek2011</dc:creator>
      <dc:date>2024-11-16T19:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Color Coding Logic for Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Color-Coding-Logic-for-Pivot-table/m-p/1656904#M507280</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Try something like&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;If( Column(1) &amp;lt; Sum(TOTAL Percentaje), red,
If( Column(1) &amp;gt;= Sum(TOTAL Percentaje) and Column(1) &amp;lt; Sum(TOTAL &amp;lt;Col1&amp;gt;, amber,
If( Column(1) &amp;gt;= Sum(TOTAL &amp;lt;Col1&amp;gt;, green)))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Note that I provided the logic. You'll have to accomodate to your actual fields and functions (share a sample of data so I can give you a more accurate answer/explanation).&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jaime.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 08:03:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-Coding-Logic-for-Pivot-table/m-p/1656904#M507280</guid>
      <dc:creator>jaibau1993</dc:creator>
      <dc:date>2019-12-12T08:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: Color Coding Logic for Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Color-Coding-Logic-for-Pivot-table/m-p/1656928#M507281</link>
      <description>&lt;P&gt;hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;thank's , but the logic is not working for the colors .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If( Percentage &amp;lt; Sum(TOTAL Percentage), red,&lt;BR /&gt;If( Percentage &amp;gt;= Sum(TOTAL Percentage) and Sum(Percentage) &amp;lt; Sum(TOTAL &amp;lt;Col1&amp;gt;, amber,&lt;BR /&gt;If( Percentage &amp;gt;= Sum(TOTAL &amp;lt;Col1&amp;gt;, green)))&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 09:17:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-Coding-Logic-for-Pivot-table/m-p/1656928#M507281</guid>
      <dc:creator>Prateek2011</dc:creator>
      <dc:date>2019-12-12T09:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: Color Coding Logic for Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Color-Coding-Logic-for-Pivot-table/m-p/1657035#M507282</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;If you used the expression&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;If( Percentage &amp;lt; Sum(TOTAL Percentage), red,
If( Percentage &amp;gt;= Sum(TOTAL Percentage) and Sum(Percentage) &amp;lt; Sum(TOTAL &amp;lt;Col1&amp;gt;, amber,
If( Percentage &amp;gt;= Sum(TOTAL &amp;lt;Col1&amp;gt;, green)))&lt;/LI-CODE&gt;&lt;P&gt;It won't work because it is still a &lt;EM&gt;logic template&lt;/EM&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;What expression are you using in your "Percentage" expression? You should use it instead of Sum(Total Percentage)&lt;/LI&gt;&lt;LI&gt;What dimension are you using as "Col1"?&lt;/LI&gt;&lt;LI&gt;Use proper color functions like red(), green(), yellow(), RGB(255,0,0)...&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jaime.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 12:01:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-Coding-Logic-for-Pivot-table/m-p/1657035#M507282</guid>
      <dc:creator>jaibau1993</dc:creator>
      <dc:date>2019-12-12T12:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: Color Coding Logic for Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Color-Coding-Logic-for-Pivot-table/m-p/1658847#M507283</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If Anyone Has Different Approach .&amp;nbsp; &amp;nbsp; &amp;nbsp;Please share the Knowledge&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;I Used 1 Logic for color .&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In which i use two Variable :&amp;nbsp; One for TOTAL and Another One For Max( Sub Total) and Used in Expression Background Color and Text Format Chart.&lt;/P&gt;&lt;P&gt;For Example :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Percentage&amp;nbsp; =&amp;nbsp; Sum(A)/Sum(B)&lt;/P&gt;&lt;P&gt;vPercentageTotal =&amp;nbsp; Sum(Total A)/Sum(Total B)&amp;nbsp; = 117%&lt;/P&gt;&lt;P&gt;vPercentageSubTotalMax =&amp;nbsp; Max(Aggr(Sum(A)/Sum(B),Col1))&amp;nbsp; = 126.5%&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expression BackGround :&amp;nbsp;&lt;/P&gt;&lt;P&gt;If(&amp;nbsp; Sum(A)/Sum(B)&amp;nbsp; &amp;nbsp;&amp;lt;&amp;nbsp; &amp;nbsp;vPercentageTotal&amp;nbsp; , Red(),&lt;/P&gt;&lt;P&gt;Sum(A)/Sum(B) &amp;gt;=&amp;nbsp;vPercentageSubTotalMax&amp;nbsp; , Green(),&lt;/P&gt;&lt;P&gt;Yellow()&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expression Text Color:&amp;nbsp;&lt;/P&gt;&lt;P&gt;If(&amp;nbsp; Sum(A)/Sum(B)&amp;nbsp; &amp;nbsp;&amp;lt;&amp;nbsp; &amp;nbsp;vPercentageTotal&amp;nbsp; , White(),&lt;/P&gt;&lt;P&gt;Sum(A)/Sum(B) &amp;gt;=&amp;nbsp;vPercentageSubTotalMax&amp;nbsp; , White(),&lt;/P&gt;&lt;P&gt;Black()&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 18 Dec 2019 08:46:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-Coding-Logic-for-Pivot-table/m-p/1658847#M507283</guid>
      <dc:creator>Prateek2011</dc:creator>
      <dc:date>2019-12-18T08:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Color Coding Logic for Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Color-Coding-Logic-for-Pivot-table/m-p/1659144#M507284</link>
      <description>&lt;P&gt;Try the following Help link:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/Visual%20Cues.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/Visual%20Cues.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;This would use the Visual Cues tab in the Pivot Table settings, but I am assuming Percentage is an expression, not a dimension, if it is a dimension, they you have to use the background setting per the following Design Blog post:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Colors-in-charts/ba-p/1475280" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Colors-in-charts/ba-p/1475280&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;As far as the expression, you will likely need to attache sample app, so folks can see your data model and chart etc., so they can look everything over to properly determine the correct expression to solve things, if you cannot attach that, I am not sure you will get further answers given the other poster tried without it and could not help you get it.&lt;/P&gt;
&lt;P&gt;My post will kick things back up though, so maybe someone else will have a look and take another try at things.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2019 19:33:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-Coding-Logic-for-Pivot-table/m-p/1659144#M507284</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-12-18T19:33:34Z</dc:date>
    </item>
  </channel>
</rss>

