<?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: Background color in pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Background-color-in-pivot-table/m-p/618389#M227894</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You probably need a pick-match combination in your expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pick(match(SystemCode,114,744,....,125)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; , if(count(${&amp;lt;PeriodCounter= ... &amp;gt;}SystemCode)&amp;lt; only({&amp;lt;...&amp;gt;}KPI_Value), rgb(...), rgb(...) ) // SystemCode 114&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; , if(count(${&amp;lt;PeriodCounter= ... &amp;gt;}SystemCode)&amp;lt; only({&amp;lt;...&amp;gt;}KPI_Value), rgb(...), rgb(...) ) // SystemCode 744&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; , ....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; , if(count(${&amp;lt;PeriodCounter= ... &amp;gt;}SystemCode)&amp;lt; only({&amp;lt;....&amp;gt;}KPI_Value), rgb(...), rgb(...) ) // SystemCode 125&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you post an example document?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Feb 2014 16:16:39 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2014-02-21T16:16:39Z</dc:date>
    <item>
      <title>Background color in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Background-color-in-pivot-table/m-p/618388#M227893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a pivot table with two dimensions, YearMonth and SystemCode. I use the following expression to get rolling 13 for some system codes and it works fine:&lt;/P&gt;&lt;P&gt;count({$&amp;lt;PeriodCounter={"&amp;gt;$(#=max(PeriodCounter-14))&amp;lt;=$(#=max(PeriodCounter)-1)"},SystemCode={'114','744','746','113','992','118','121','125'}&amp;gt;} SystemCode)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I would like to add background colors (red/green) if the system codes are over or under goal. The issue is that the system codes I use have differnt goals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to create a if-statement for the background color for the expression like (below only example for system code 114):&lt;/P&gt;&lt;P&gt;if(count({$&amp;lt;PeriodCounter={"&amp;gt;$(#=max(PeriodCounter-14))&amp;lt;=$(#=max(PeriodCounter)-1)"},SystemCode={'114'}&amp;gt;} SystemCode) &amp;lt; only({$&amp;lt;PeriodCounter={"&amp;gt;$(#=max(PeriodCounter-14))&amp;lt;=$(#=max(PeriodCounter)-1)"},KPI_Heading={"Goal_114"}&amp;gt;} KPI_Value), RGB(68,185,68),RGB(226,83,83))&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This gives me a pivot table with all the system codes and not the correct color on system code 114.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyone that have some suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Feb 2014 14:55:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-color-in-pivot-table/m-p/618388#M227893</guid>
      <dc:creator />
      <dc:date>2014-02-21T14:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Background color in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Background-color-in-pivot-table/m-p/618389#M227894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You probably need a pick-match combination in your expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pick(match(SystemCode,114,744,....,125)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; , if(count(${&amp;lt;PeriodCounter= ... &amp;gt;}SystemCode)&amp;lt; only({&amp;lt;...&amp;gt;}KPI_Value), rgb(...), rgb(...) ) // SystemCode 114&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; , if(count(${&amp;lt;PeriodCounter= ... &amp;gt;}SystemCode)&amp;lt; only({&amp;lt;...&amp;gt;}KPI_Value), rgb(...), rgb(...) ) // SystemCode 744&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; , ....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; , if(count(${&amp;lt;PeriodCounter= ... &amp;gt;}SystemCode)&amp;lt; only({&amp;lt;....&amp;gt;}KPI_Value), rgb(...), rgb(...) ) // SystemCode 125&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you post an example document?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Feb 2014 16:16:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-color-in-pivot-table/m-p/618389#M227894</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-02-21T16:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Background color in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Background-color-in-pivot-table/m-p/618390#M227895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have attached an example where you can find the first pivottable that is correct but without background color and the other table I have start with pick(match...) but it doesn't that well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 12:21:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-color-in-pivot-table/m-p/618390#M227895</guid>
      <dc:creator />
      <dc:date>2014-02-25T12:21:32Z</dc:date>
    </item>
  </channel>
</rss>

