<?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: Custom Colors by Year dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Custom-Colors-by-Year-dimension/m-p/934755#M648056</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;cf. &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;video - &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Qlik Sense Using Variables interface - for more details about variables in QS11.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Define vVar&amp;nbsp; eg : 2016&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Appearance &amp;gt; Colors and legend &amp;gt; Colors Custom &amp;gt; By expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pick(Match(YEAR_FIELD,$(vVar),$(vVar)+1,$(vVar)+2),RGB(255,0,0),RGB(0,255,0),RGB(0,0,255))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;L&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Oct 2015 13:26:44 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-10-20T13:26:44Z</dc:date>
    <item>
      <title>Custom Colors by Year dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-Colors-by-Year-dimension/m-p/934750#M648051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to assign a color per year? I am creating a report with year as the dimension. Out of all time periods in the data, I have only gotten the past 3 years using set analysis. As a result, the default colors in the graph were quite to be in a similar shade maybe because it considered the other years not included in the set analysis However, &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I want the colors as distinct as possible. Any suggestions?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 07:46:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-Colors-by-Year-dimension/m-p/934750#M648051</guid>
      <dc:creator />
      <dc:date>2015-10-08T07:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Colors by Year dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-Colors-by-Year-dimension/m-p/934751#M648052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create the Color code for each Year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Goto Expression, click the + sign and select Background color and write your custom expression like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pick(Match(Year_Field,2015,2014,2013),RGB()for 2015,RGB()&lt;SPAN style="font-size: 13.3333px;"&gt;for 2014&lt;/SPAN&gt;,RGB()&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;for 2013)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 13:31:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-Colors-by-Year-dimension/m-p/934751#M648052</guid>
      <dc:creator />
      <dc:date>2015-10-08T13:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Colors by Year dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-Colors-by-Year-dimension/m-p/934752#M648053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To make this a little more dynamic, I would create a variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vVar = Max(Year_Field)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then use it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Pick(Match(Year_Field, &lt;SPAN style="color: #ff0000;"&gt;$(vVar), &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;STRONG style="color: #ff0000;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;$(vVar) - 1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;,&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #ff0000;"&gt; (&lt;/SPAN&gt;&lt;STRONG style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;$(vVar) - 2)&lt;/STRONG&gt;), RGB() for 2015,RGB() &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;for 2014&lt;/SPAN&gt;,RGB() &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;for 2013)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 13:35:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-Colors-by-Year-dimension/m-p/934752#M648053</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-10-08T13:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Colors by Year dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-Colors-by-Year-dimension/m-p/934753#M648054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would this work on Qlik Sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 23:47:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-Colors-by-Year-dimension/m-p/934753#M648054</guid>
      <dc:creator />
      <dc:date>2015-10-08T23:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Colors by Year dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-Colors-by-Year-dimension/m-p/934754#M648055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I haven't worked with variables in Qlik Sense, but I think the new version allows for you to work with variables. If variables can be used the expression should work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 23:59:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-Colors-by-Year-dimension/m-p/934754#M648055</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-10-08T23:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Colors by Year dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-Colors-by-Year-dimension/m-p/934755#M648056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;cf. &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;video - &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Qlik Sense Using Variables interface - for more details about variables in QS11.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Define vVar&amp;nbsp; eg : 2016&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Appearance &amp;gt; Colors and legend &amp;gt; Colors Custom &amp;gt; By expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pick(Match(YEAR_FIELD,$(vVar),$(vVar)+1,$(vVar)+2),RGB(255,0,0),RGB(0,255,0),RGB(0,0,255))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;L&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 13:26:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-Colors-by-Year-dimension/m-p/934755#M648056</guid>
      <dc:creator />
      <dc:date>2015-10-20T13:26:44Z</dc:date>
    </item>
  </channel>
</rss>

