<?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: Losing colour in chart when I add a second expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Losing-colour-in-chart-when-I-add-a-second-expression/m-p/623493#M547146</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stephen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try below code in Background color of expression in:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: blue; font-size: 9pt;"&gt;pick&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: blue; font-size: 9pt;"&gt;match&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-family: 'Helvetica','sans-serif'; color: #3d3d3d; font-size: 10pt;"&gt;Financial_Year&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;, '2013', '2014'),&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: blue; font-size: 9pt;"&gt;green&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;(), &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: blue; font-size: 9pt;"&gt;red&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;()) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;Hope this helps&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;Nitha&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Feb 2014 13:14:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-02-24T13:14:28Z</dc:date>
    <item>
      <title>Losing colour in chart when I add a second expression</title>
      <link>https://community.qlik.com/t5/QlikView/Losing-colour-in-chart-when-I-add-a-second-expression/m-p/623484#M547137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a 2 dimensional combo chart in Qlikview. First dimension is department, second is financial year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an expression to show number of hours worked by department members, this is represented as a grouped bar on the combo chart, so for each dept, we get a coloured bar for each financial year, as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="before.PNG" class="jive-image" src="https://community.qlik.com/legacyfs/online/53728_before.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I add in a second expression for a symbol on the chart, the bars all change to blue. this is rather confusing as it no longer matches the colour coding on other charts. This new expression uses AGGR to calculate a single average for each Dimension 1 value (department) rather than doing a separte value for each combination of dept and financial year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="After.PNG" class="jive-image" src="https://community.qlik.com/legacyfs/online/53729_After.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest a way to keep the colours of Dimension 2 on the first expression when I add this second expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 11:43:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Losing-colour-in-chart-when-I-add-a-second-expression/m-p/623484#M547137</guid>
      <dc:creator />
      <dc:date>2014-02-24T11:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Losing colour in chart when I add a second expression</title>
      <link>https://community.qlik.com/t5/QlikView/Losing-colour-in-chart-when-I-add-a-second-expression/m-p/623485#M547138</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;have you already tried going to Properties and in the Color tab check Multicolored?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Nuno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 12:07:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Losing-colour-in-chart-when-I-add-a-second-expression/m-p/623485#M547138</guid>
      <dc:creator />
      <dc:date>2014-02-24T12:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Losing colour in chart when I add a second expression</title>
      <link>https://community.qlik.com/t5/QlikView/Losing-colour-in-chart-when-I-add-a-second-expression/m-p/623486#M547139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nuno, thanks for rewsponding.&lt;/P&gt;&lt;P&gt;The Multicoloured box is greyed out, and doesn’t respond when I click on it.&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 12:11:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Losing-colour-in-chart-when-I-add-a-second-expression/m-p/623486#M547139</guid>
      <dc:creator />
      <dc:date>2014-02-24T12:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Losing colour in chart when I add a second expression</title>
      <link>https://community.qlik.com/t5/QlikView/Losing-colour-in-chart-when-I-add-a-second-expression/m-p/623487#M547140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;add&lt;/P&gt;&lt;P&gt;color(FieldIndex('Dim',Dim))&lt;/P&gt;&lt;P&gt;as the background colour of all of your formulas&lt;/P&gt;&lt;P&gt;while Dim is the dimension of your chart.&lt;/P&gt;&lt;P&gt;The only effect ist in the formula legend&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/53709_pastedImage_0.png" style="width: 620px; height: 236px;" /&gt;&lt;/P&gt;&lt;P&gt;Maybe the values are unfortunately, but I used them in another case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 12:15:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Losing-colour-in-chart-when-I-add-a-second-expression/m-p/623487#M547140</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2014-02-24T12:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Losing colour in chart when I add a second expression</title>
      <link>https://community.qlik.com/t5/QlikView/Losing-colour-in-chart-when-I-add-a-second-expression/m-p/623488#M547141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then I would set an expression on the "background color" (you can find it when you expand the plus icon on your first expression).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should be something like this (depending on the years you have):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Financial_Year='2014', color(1), if(Financial_Year='2013', color(2),color(3)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Nuno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 12:21:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Losing-colour-in-chart-when-I-add-a-second-expression/m-p/623488#M547141</guid>
      <dc:creator />
      <dc:date>2014-02-24T12:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Losing colour in chart when I add a second expression</title>
      <link>https://community.qlik.com/t5/QlikView/Losing-colour-in-chart-when-I-add-a-second-expression/m-p/623489#M547142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is very helpful,, I've used the following expression to get, in this instance, the desired result:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="font-size: 8pt;"&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: #800000; font-size: 8pt;"&gt;Calendar.NexusYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ='2013/14', &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;color&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(1), &lt;/SPAN&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: #800000; font-size: 8pt;"&gt;Calendar.NexusYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='2012/13', &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;color&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(2),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;color&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(3))) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;T&lt;/SPAN&gt;his works fine when we have the last 3 financial years selected, but this won't always be the case. However, I'm sure I can define a variable to do the rest of the work or use this in conjuction with Martin's suggestion to get the result I'm after&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 12:30:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Losing-colour-in-chart-when-I-add-a-second-expression/m-p/623489#M547142</guid>
      <dc:creator />
      <dc:date>2014-02-24T12:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Losing colour in chart when I add a second expression</title>
      <link>https://community.qlik.com/t5/QlikView/Losing-colour-in-chart-when-I-add-a-second-expression/m-p/623490#M547143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, Martin's suggestion is more progressive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Glad I could help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 12:33:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Losing-colour-in-chart-when-I-add-a-second-expression/m-p/623490#M547143</guid>
      <dc:creator />
      <dc:date>2014-02-24T12:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: Losing colour in chart when I add a second expression</title>
      <link>https://community.qlik.com/t5/QlikView/Losing-colour-in-chart-when-I-add-a-second-expression/m-p/623491#M547144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Martin, i had a good response from Nuno which has given me a reasonable solution. Your answer seems to have the potential to get the problem sorted without very complex expressions, but I haven't quite got the syntax cracked......&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Color&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FieldIndex&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('Dim',1))&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;always seems to colour all the bars black, as does =&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Color&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FieldIndex&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('Dim',Calendar.NexusYear)) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you provide any extra suggestions on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 12:38:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Losing-colour-in-chart-when-I-add-a-second-expression/m-p/623491#M547144</guid>
      <dc:creator />
      <dc:date>2014-02-24T12:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Losing colour in chart when I add a second expression</title>
      <link>https://community.qlik.com/t5/QlikView/Losing-colour-in-chart-when-I-add-a-second-expression/m-p/623492#M547145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;fieldindex returns the position value by loading.&lt;/P&gt;&lt;P&gt;this number is used as the color number from the colour tab.&lt;/P&gt;&lt;P&gt;the formula uses the field Dim (without '', = actual Dim in this line) and compares it with 'Dim' (with '', = the column in the table)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 12:44:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Losing-colour-in-chart-when-I-add-a-second-expression/m-p/623492#M547145</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2014-02-24T12:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Losing colour in chart when I add a second expression</title>
      <link>https://community.qlik.com/t5/QlikView/Losing-colour-in-chart-when-I-add-a-second-expression/m-p/623493#M547146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stephen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try below code in Background color of expression in:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: blue; font-size: 9pt;"&gt;pick&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: blue; font-size: 9pt;"&gt;match&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-family: 'Helvetica','sans-serif'; color: #3d3d3d; font-size: 10pt;"&gt;Financial_Year&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;, '2013', '2014'),&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: blue; font-size: 9pt;"&gt;green&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;(), &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: blue; font-size: 9pt;"&gt;red&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;()) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;Hope this helps&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;Nitha&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 13:14:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Losing-colour-in-chart-when-I-add-a-second-expression/m-p/623493#M547146</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-24T13:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Losing colour in chart when I add a second expression</title>
      <link>https://community.qlik.com/t5/QlikView/Losing-colour-in-chart-when-I-add-a-second-expression/m-p/623494#M547147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin, thanks for all you're help so far, it's starting to take shape.&lt;/P&gt;&lt;P&gt;I'm noow using the line :&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Color&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FieldIndex&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('Calendar.NexusYear',&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Calendar.NexusYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is giving me the problem that each financial year is associated with one colour and this does not change according to which years have been selected. So if I select years 2013/14. 2012/13 and 2011/12, the graph at the top of the chart uses colours 1-3 (blue,red &amp;amp; green), but the one using the method above uses colours 6-8 (brown, pink &amp;amp; grey for the same years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you suggest an adjustment I can make to the line above to force it to restrict the FieldIndex value returned so that it takes into account only the ones selected?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can't, thanks for helping anyway, I've learned a lot from this and I'll continue working on it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 13:15:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Losing-colour-in-chart-when-I-add-a-second-expression/m-p/623494#M547147</guid>
      <dc:creator />
      <dc:date>2014-02-24T13:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Losing colour in chart when I add a second expression</title>
      <link>https://community.qlik.com/t5/QlikView/Losing-colour-in-chart-when-I-add-a-second-expression/m-p/623495#M547148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stephen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you use the formula in both expressions?&lt;/P&gt;&lt;P&gt;If financial year 2011/12 is the 6. year in your datas it will get the 6. color.&lt;/P&gt;&lt;P&gt;But in a "normal" selection it will the the first dimension and so the first color.&lt;/P&gt;&lt;P&gt;You can also use the function in a chart with only one dimension / formula by adding it in the dimension paramaters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 13:23:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Losing-colour-in-chart-when-I-add-a-second-expression/m-p/623495#M547148</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2014-02-24T13:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Losing colour in chart when I add a second expression</title>
      <link>https://community.qlik.com/t5/QlikView/Losing-colour-in-chart-when-I-add-a-second-expression/m-p/623496#M547149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Nitha, this is also very helpful. This demonstrates that another way to do&amp;nbsp; this would be to have a variable along the lines you've suggested but with more years and colours, and use this variable to control the colouring of financial year dimwensions on all the charts that use it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 13:26:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Losing-colour-in-chart-when-I-add-a-second-expression/m-p/623496#M547149</guid>
      <dc:creator />
      <dc:date>2014-02-24T13:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Losing colour in chart when I add a second expression</title>
      <link>https://community.qlik.com/t5/QlikView/Losing-colour-in-chart-when-I-add-a-second-expression/m-p/623497#M547150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The colouring is only important in the first expression, which manifests itself as a bar for each dept/fin year combination. The other expression returns only a single value for each dept, so defaulting to a single colour is fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all your help with this, I really feel I have a few strong leads to work with now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 13:33:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Losing-colour-in-chart-when-I-add-a-second-expression/m-p/623497#M547150</guid>
      <dc:creator />
      <dc:date>2014-02-24T13:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Losing colour in chart when I add a second expression</title>
      <link>https://community.qlik.com/t5/QlikView/Losing-colour-in-chart-when-I-add-a-second-expression/m-p/623498#M547151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have resolved this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ended up using a solution along the lines of that suggested by Martin, but using GetFieldSelections rather than Fieldindex.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Color&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (((&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;index&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GetFieldSelections&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Calendar.NexusYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, ',' , 14), &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Calendar.NexusYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ) -1) /8) +1) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, if I have 3 financial years selected (which don't need to be in sequence, The GetFieldSelections function will give me a string like "2008/09,2011/12,2012/13". I then use index to find the position of the financial year I need the colour for and use the remaining addition, subtraction and division to convert the position (1, 9, 17 etc.) to a colour index (1, 2, 3 etc.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're using this, please be aware that if no years are selected, GetFieldSelections returns an empty string. I will need to test GetSelectedCount to check this and if so, use the string "2007/08,2008/09,2009/10......" etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to Nuno, Martin and Nitha, who all planted seeds that allowed me to reach this highly satisfactory solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 15:33:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Losing-colour-in-chart-when-I-add-a-second-expression/m-p/623498#M547151</guid>
      <dc:creator />
      <dc:date>2014-02-24T15:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Losing colour in chart when I add a second expression</title>
      <link>https://community.qlik.com/t5/QlikView/Losing-colour-in-chart-when-I-add-a-second-expression/m-p/623499#M547152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good solution. Respect!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2014 09:16:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Losing-colour-in-chart-when-I-add-a-second-expression/m-p/623499#M547152</guid>
      <dc:creator>stantrolav</dc:creator>
      <dc:date>2014-07-11T09:16:05Z</dc:date>
    </item>
  </channel>
</rss>

