<?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 Expression or Colour by Measure in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Colour-by-Expression-or-Colour-by-Measure/m-p/1796063#M64379</link>
    <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;I'm building a demo app for a project, and the customer has given me colour codes for targets, red, amber and green.&amp;nbsp; I am OK with building a variable and passing it a measure to return the colour code, however, one of the other charts I built is coloured by measure, using the customers colours from the theme I built.&lt;/P&gt;&lt;P&gt;One of the customers has asked if they can toggle between the target colours and the "nice" colours in the TreeMap chart.&lt;/P&gt;&lt;P&gt;For one, I have to edit the page and set the Appearance:Colours and Legend:Colours=by Expression, and enter the Expression, for the other I have to set it to by Measure, select the measure and select the colour theme.&lt;/P&gt;&lt;P&gt;So I can build two versions of the same chart, pop them in a container, and show them conditionally using a button, but I wondered if any community geniuses had a way to do this just using one chart, and by expression, but being able to create an expression that mimics the by measure mode and selects a colour scheme?&lt;/P&gt;&lt;P&gt;the current expression is toggled using a selector variable:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT color="#008000"&gt;pick($(vAnalysisPageShowColours),'#8C770E',$(vTargetTVColourCalc_OTIF([OTIF])) )&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;But could I replace the hard coded colour with an expression that mimics what Qlik Sense does when you select By Measure?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to do this?&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 17:19:41 GMT</pubDate>
    <dc:creator>SimonBall</dc:creator>
    <dc:date>2024-11-16T17:19:41Z</dc:date>
    <item>
      <title>Colour by Expression or Colour by Measure</title>
      <link>https://community.qlik.com/t5/App-Development/Colour-by-Expression-or-Colour-by-Measure/m-p/1796063#M64379</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;I'm building a demo app for a project, and the customer has given me colour codes for targets, red, amber and green.&amp;nbsp; I am OK with building a variable and passing it a measure to return the colour code, however, one of the other charts I built is coloured by measure, using the customers colours from the theme I built.&lt;/P&gt;&lt;P&gt;One of the customers has asked if they can toggle between the target colours and the "nice" colours in the TreeMap chart.&lt;/P&gt;&lt;P&gt;For one, I have to edit the page and set the Appearance:Colours and Legend:Colours=by Expression, and enter the Expression, for the other I have to set it to by Measure, select the measure and select the colour theme.&lt;/P&gt;&lt;P&gt;So I can build two versions of the same chart, pop them in a container, and show them conditionally using a button, but I wondered if any community geniuses had a way to do this just using one chart, and by expression, but being able to create an expression that mimics the by measure mode and selects a colour scheme?&lt;/P&gt;&lt;P&gt;the current expression is toggled using a selector variable:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT color="#008000"&gt;pick($(vAnalysisPageShowColours),'#8C770E',$(vTargetTVColourCalc_OTIF([OTIF])) )&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;But could I replace the hard coded colour with an expression that mimics what Qlik Sense does when you select By Measure?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to do this?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 17:19:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Colour-by-Expression-or-Colour-by-Measure/m-p/1796063#M64379</guid>
      <dc:creator>SimonBall</dc:creator>
      <dc:date>2024-11-16T17:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Colour by Expression or Colour by Measure</title>
      <link>https://community.qlik.com/t5/App-Development/Colour-by-Expression-or-Colour-by-Measure/m-p/1796751#M64393</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/127363"&gt;@SimonBall&lt;/a&gt;&amp;nbsp; do you mean changing by dimension like this article explains?&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://support.qlik.com/articles/000034565" target="_blank"&gt;https://support.qlik.com/articles/000034565&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please let me know &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Apr 2021 11:12:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Colour-by-Expression-or-Colour-by-Measure/m-p/1796751#M64393</guid>
      <dc:creator>Patricia_Silva</dc:creator>
      <dc:date>2021-04-04T11:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Colour by Expression or Colour by Measure</title>
      <link>https://community.qlik.com/t5/App-Development/Colour-by-Expression-or-Colour-by-Measure/m-p/1797940#M64540</link>
      <description>&lt;P&gt;Thanks for the link, I'm able to use that option to set colours for dimension options, but I need to be able to toggle between by expression and by measure options and that doesn't seem possible.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 11:16:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Colour-by-Expression-or-Colour-by-Measure/m-p/1797940#M64540</guid>
      <dc:creator>SimonBall</dc:creator>
      <dc:date>2021-04-08T11:16:16Z</dc:date>
    </item>
  </channel>
</rss>

