<?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 Dimension Background Colour in a Pivot Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dimension-Background-Colour-in-a-Pivot-Table/m-p/370683#M137839</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on an app where I want to be able to highlight a dimension based on the value of the element for the most recent month, rather than (or as well as) highlighting the individual element.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached a simplified example to illustrate - the pivot I am working with has more dimensions/expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using set analysis, you can check the value for the most recent month and set the backgrond value for a condition.&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13408084986702897" jivemacro_uid="_13408084986702897"&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;=if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Min&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(vMaxMonth)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &amp;lt; 200, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;lightred&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()) &lt;/SPAN&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works, provided that there is a Sales value for the most recent month for every dimension value in the table. However, as soon as one dimension does not have an associated value the formatting breaks for the entire dimension (not just the occurance that has no value, which would be an acceptable for what I need).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the example if you select months 1 to 4 the highlighting works. Select months 1 to 5, or 1 to 6 and it doesn't work. Select just month 5 or 6 and it works as it has now dropped the dimenison occurance with no associated value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a better way to code the attribute condition so that it does not try to obtain a missing value?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jun 2012 15:05:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-06-27T15:05:04Z</dc:date>
    <item>
      <title>Dimension Background Colour in a Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-Background-Colour-in-a-Pivot-Table/m-p/370683#M137839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on an app where I want to be able to highlight a dimension based on the value of the element for the most recent month, rather than (or as well as) highlighting the individual element.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached a simplified example to illustrate - the pivot I am working with has more dimensions/expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using set analysis, you can check the value for the most recent month and set the backgrond value for a condition.&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13408084986702897" jivemacro_uid="_13408084986702897"&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;=if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Min&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(vMaxMonth)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &amp;lt; 200, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;lightred&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()) &lt;/SPAN&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works, provided that there is a Sales value for the most recent month for every dimension value in the table. However, as soon as one dimension does not have an associated value the formatting breaks for the entire dimension (not just the occurance that has no value, which would be an acceptable for what I need).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the example if you select months 1 to 4 the highlighting works. Select months 1 to 5, or 1 to 6 and it doesn't work. Select just month 5 or 6 and it works as it has now dropped the dimenison occurance with no associated value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a better way to code the attribute condition so that it does not try to obtain a missing value?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 15:05:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-Background-Colour-in-a-Pivot-Table/m-p/370683#M137839</guid>
      <dc:creator />
      <dc:date>2012-06-27T15:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension Background Colour in a Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-Background-Colour-in-a-Pivot-Table/m-p/370684#M137840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Man, that was tricky...&lt;/P&gt;&lt;P&gt;Hope this is what you need. if there is a null value, it considers it as less than 200, hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 16:09:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-Background-Colour-in-a-Pivot-Table/m-p/370684#M137840</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2012-06-27T16:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension Background Colour in a Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-Background-Colour-in-a-Pivot-Table/m-p/370685#M137841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ioannis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That very much helps, thank you. I really must look at the aggr function more closely, have never had cause to use it before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 16:35:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-Background-Colour-in-a-Pivot-Table/m-p/370685#M137841</guid>
      <dc:creator />
      <dc:date>2012-06-27T16:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension Background Colour in a Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-Background-Colour-in-a-Pivot-Table/m-p/370686#M137842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to understand exactly what&lt;/P&gt;&lt;P&gt;if(Min({&amp;lt;Month={"$(vMaxMonth)"}&amp;gt;} Sales) &amp;lt; 200&lt;/P&gt;&lt;P&gt;is supposed to find.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it the minimum number of Sales in the last month?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of the things I find really confusing about set analysis is the syntax, and the documentation&lt;/P&gt;&lt;P&gt;and white papers are not a lot of help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone explain this for me? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 15:01:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-Background-Colour-in-a-Pivot-Table/m-p/370686#M137842</guid>
      <dc:creator />
      <dc:date>2013-09-06T15:01:46Z</dc:date>
    </item>
  </channel>
</rss>

