<?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: How to colour bar chart by two different master measures? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-colour-bar-chart-by-two-different-master-measures/m-p/2448608#M97835</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Try this in your expression, the measure is not a text but a number :&lt;/P&gt;
&lt;P&gt;[Availability Aggr.] &amp;gt; 0.99,&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;</description>
    <pubDate>Fri, 03 May 2024 15:31:00 GMT</pubDate>
    <dc:creator>paulcalvet</dc:creator>
    <dc:date>2024-05-03T15:31:00Z</dc:date>
    <item>
      <title>How to colour bar chart by two different master measures?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-colour-bar-chart-by-two-different-master-measures/m-p/2448461#M97830</link>
      <description>&lt;P&gt;I have a bar chart that uses two different bar charts:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alespooletto_1-1714740902851.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/165380iCA0BF24D41781152/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alespooletto_1-1714740902851.png" alt="alespooletto_1-1714740902851.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alespooletto_0-1714741258611.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/165387iA43CE4DB1F3723EB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alespooletto_0-1714741258611.png" alt="alespooletto_0-1714741258611.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And I want to make it so that the two bar charts get coloured by the two different measures' values, so I made this code to put in the Colour by Expression section:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;IF(
    VALUELIST('Availability', 'Availability Aggr.') = 'Availability Aggr.',
    IF(
        [Availability Aggr.] &amp;gt; '99%',
        GREEN(),
        IF(
            [Availability Aggr.] &amp;gt; '89%',
            RGB(255, 165, 0),
            RED()
        )
    ),
    IF(
        VALUELIST('Availability', 'Availability Aggr.') = 'Availability',
        IF(
            [Availability] &amp;gt; '99%',
            GREEN(),
            IF(
                [Availability] &amp;gt; '89%',
                RGB(255, 165, 0),
                RED()
            )
        ),
        BLACK() // Default colour
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Unfortunately as you can see, it always takes the default colour.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I saw in previous posts people suggesting to colour the maste rmeasure by segments within the master measure itself, I tried that but it didn't work as well.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anybody help me solve this ? Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 13:01:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-colour-bar-chart-by-two-different-master-measures/m-p/2448461#M97830</guid>
      <dc:creator>alespooletto</dc:creator>
      <dc:date>2024-05-03T13:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to colour bar chart by two different master measures?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-colour-bar-chart-by-two-different-master-measures/m-p/2448608#M97835</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Try this in your expression, the measure is not a text but a number :&lt;/P&gt;
&lt;P&gt;[Availability Aggr.] &amp;gt; 0.99,&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 15:31:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-colour-bar-chart-by-two-different-master-measures/m-p/2448608#M97835</guid>
      <dc:creator>paulcalvet</dc:creator>
      <dc:date>2024-05-03T15:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to colour bar chart by two different master measures?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-colour-bar-chart-by-two-different-master-measures/m-p/2448906#M97843</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/36711"&gt;@paulcalvet&lt;/a&gt;&amp;nbsp;, thanks for your response!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately I tried to do that, but it doesn't work because it tells me that "All parameters to ValueList must be constant".&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have anything else in mind?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 May 2024 08:42:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-colour-bar-chart-by-two-different-master-measures/m-p/2448906#M97843</guid>
      <dc:creator>alespooletto</dc:creator>
      <dc:date>2024-05-05T08:42:53Z</dc:date>
    </item>
  </channel>
</rss>

