<?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: to use different colors for two measures using color by expression in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/to-use-different-colors-for-two-measures-using-color-by/m-p/1859804#M70948</link>
    <description>&lt;P&gt;This feature was added in MAy 2021 version&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/November2021/Content/Sense_Helpsites/WhatsNew/What-is-new-developer-May2021.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense-developer/November2021/Content/Sense_Helpsites/WhatsNew/What-is-new-developer-May2021.htm&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Nov 2021 10:30:24 GMT</pubDate>
    <dc:creator>vinieme12</dc:creator>
    <dc:date>2021-11-16T10:30:24Z</dc:date>
    <item>
      <title>to use different colors for two measures using color by expression</title>
      <link>https://community.qlik.com/t5/App-Development/to-use-different-colors-for-two-measures-using-color-by/m-p/1859727#M70945</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;
&lt;P&gt;I have a case where I am using two measures in combo chart. Measure1 is Sales and Measure2 is Budget. My Sales values is going -ve in november month which I need to show as positive. My original chart looks like below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="taha_mansoor_0-1637048157791.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/66719i8D54151B9355B271/image-size/medium?v=v2&amp;amp;px=400" role="button" title="taha_mansoor_0-1637048157791.png" alt="taha_mansoor_0-1637048157791.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using fabs() to make the -ve value +ve and using color by expression where I am using this expression: if(Sum(Sales)&amp;lt;0, Red, Blue()) and then my chart appears as below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="taha_mansoor_2-1637048912314.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/66722iC208E807E6B82587/image-size/medium?v=v2&amp;amp;px=400" role="button" title="taha_mansoor_2-1637048912314.png" alt="taha_mansoor_2-1637048912314.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem here is that the Measure2 representation, i.e. line, also takes the impact of the color expression which I don't want. I want the budget line(Measure2) to be single color (yellow) as show in my original char above and Sale bars(Measure1) color to be dynamic based on the expression I have written in color by expression section.&lt;/P&gt;
&lt;P&gt;Any idea how to control this? do I need to control via expression code or is there any feature that can help?&lt;/P&gt;
&lt;P&gt;I can't go for color by measure using segments color definition inside the master measure because when I am defining the expression for my master measure I am already using fabs() in it to make the value positive, hence it will not get any -ve value at all, I believe.&lt;/P&gt;
&lt;P&gt;I am using Qlik Sense Enterprise on Windows June 2020 version.&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Taha&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 07:57:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/to-use-different-colors-for-two-measures-using-color-by/m-p/1859727#M70945</guid>
      <dc:creator>taha_mansoor</dc:creator>
      <dc:date>2021-11-16T07:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: to use different colors for two measures using color by expression</title>
      <link>https://community.qlik.com/t5/App-Development/to-use-different-colors-for-two-measures-using-color-by/m-p/1859804#M70948</link>
      <description>&lt;P&gt;This feature was added in MAy 2021 version&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/November2021/Content/Sense_Helpsites/WhatsNew/What-is-new-developer-May2021.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense-developer/November2021/Content/Sense_Helpsites/WhatsNew/What-is-new-developer-May2021.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 10:30:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/to-use-different-colors-for-two-measures-using-color-by/m-p/1859804#M70948</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2021-11-16T10:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: to use different colors for two measures using color by expression</title>
      <link>https://community.qlik.com/t5/App-Development/to-use-different-colors-for-two-measures-using-color-by/m-p/1859821#M70950</link>
      <description>&lt;P&gt;Alright. Is there any work around if upgrade is not an option for me.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 10:53:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/to-use-different-colors-for-two-measures-using-color-by/m-p/1859821#M70950</guid>
      <dc:creator>taha_mansoor</dc:creator>
      <dc:date>2021-11-16T10:53:20Z</dc:date>
    </item>
  </channel>
</rss>

