<?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 Colour by Dimension using variable not working in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Colour-by-Dimension-using-variable-not-working/m-p/1431850#M34367</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 am having trouble with the new colour by dimension feature when trying to use a variable to define the colouring dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that any attempt to use an expression to determine the dimension by which colouring should occur results all bars being coloured grey. &lt;SPAN style="font-size: 10pt;"&gt;I have tried defining a measure in the master items but I can only ever get the 'null values' colour to be selected.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Screenshots that explain the issue are attached below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using colour by expression could be an alternative, but losing the legend makes the chart difficult to read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions would be appreciated. Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without using a variable.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="No variable.JPG" class="jive-image image-1" src="/legacyfs/online/177971_No variable.JPG" style="height: 456px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using a variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="WithVariable.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/177973_WithVariable.JPG" style="height: 451px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Variable.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/177972_Variable.JPG" style="height: 264px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Sep 2017 09:42:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-09-28T09:42:04Z</dc:date>
    <item>
      <title>Colour by Dimension using variable not working</title>
      <link>https://community.qlik.com/t5/App-Development/Colour-by-Dimension-using-variable-not-working/m-p/1431850#M34367</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 am having trouble with the new colour by dimension feature when trying to use a variable to define the colouring dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that any attempt to use an expression to determine the dimension by which colouring should occur results all bars being coloured grey. &lt;SPAN style="font-size: 10pt;"&gt;I have tried defining a measure in the master items but I can only ever get the 'null values' colour to be selected.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Screenshots that explain the issue are attached below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using colour by expression could be an alternative, but losing the legend makes the chart difficult to read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions would be appreciated. Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without using a variable.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="No variable.JPG" class="jive-image image-1" src="/legacyfs/online/177971_No variable.JPG" style="height: 456px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using a variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="WithVariable.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/177973_WithVariable.JPG" style="height: 451px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Variable.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/177972_Variable.JPG" style="height: 264px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2017 09:42:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Colour-by-Dimension-using-variable-not-working/m-p/1431850#M34367</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-28T09:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Colour by Dimension using variable not working</title>
      <link>https://community.qlik.com/t5/App-Development/Colour-by-Dimension-using-variable-not-working/m-p/1626423#M46633</link>
      <description>&lt;P&gt;same problem &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2019 15:05:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Colour-by-Dimension-using-variable-not-working/m-p/1626423#M46633</guid>
      <dc:creator>michellisf</dc:creator>
      <dc:date>2019-09-20T15:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: Colour by Dimension using variable not working</title>
      <link>https://community.qlik.com/t5/App-Development/Colour-by-Dimension-using-variable-not-working/m-p/1626457#M46638</link>
      <description>&lt;P&gt;Hello, hope you are doing well!&lt;/P&gt;&lt;P&gt;I do not have an intuitive fix to your issues but I can offer a potential workaround.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Click on "color by expression"(fx) and try something like what is below but fill in your own field and id name&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(Employment Type='Supplier', Lightblue(),if(Employment Type='Part Time',Cyan(), if(Employment Type='Casual',DarkGray(),if(Employment Type='Full time',yellow(),if(Employment Type='etc",lightred())))))&lt;/P&gt;&lt;P&gt;not sure if this will provide the required results but I use it to color similar bar graphs/segments...Also you may have to delete some parenthesis at the end depending on how many variable you are defining.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps! Harrison&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2019 16:31:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Colour-by-Dimension-using-variable-not-working/m-p/1626457#M46638</guid>
      <dc:creator>Harrisonpeg7</dc:creator>
      <dc:date>2019-09-20T16:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Colour by Dimension using variable not working</title>
      <link>https://community.qlik.com/t5/App-Development/Colour-by-Dimension-using-variable-not-working/m-p/1974367#M80375</link>
      <description>&lt;P&gt;I was having the same issue and I put the variable's expression, rather than the variable, as the color dimension and it works.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 16:14:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Colour-by-Dimension-using-variable-not-working/m-p/1974367#M80375</guid>
      <dc:creator>adamhutch</dc:creator>
      <dc:date>2022-08-29T16:14:18Z</dc:date>
    </item>
  </channel>
</rss>

