<?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: Color by expression in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Color-by-expression/m-p/2125461#M91593</link>
    <description>&lt;P&gt;Thanks for your reply. I tried replacing with below.&lt;/P&gt;
&lt;P&gt;=if(WildMatch(SkillsetName,'*HH*')&amp;gt;0, RGB(0, 32, 74),&lt;BR /&gt;if(WildMatch(SkillsetName,'*H*')&amp;gt;0, RGB(50, 136, 189),&lt;BR /&gt;if(WildMatch(SkillsetName,'*M*')&amp;gt;0, RGB(169, 204, 227),&lt;BR /&gt;if(WildMatch(SkillsetName,'*L*')&amp;gt;0, RGB(245, 183, 177),&lt;BR /&gt;RGB(250, 219, 216)))))&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Below is how it looks post updating.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kaushi2020_0-1696496641003.png" style="width: 613px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/117672iADA79E28E7A99B4C/image-dimensions/613x161?v=v2" width="613" height="161" role="button" title="kaushi2020_0-1696496641003.png" alt="kaushi2020_0-1696496641003.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The default ones is like below:&amp;nbsp; &lt;STRONG&gt;also I want to keep the Legend as well. How this can be done ?&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kaushi2020_1-1696496714746.png" style="width: 602px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/117673i2B03C5A388F17230/image-dimensions/602x171?v=v2" width="602" height="171" role="button" title="kaushi2020_1-1696496714746.png" alt="kaushi2020_1-1696496714746.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;thanks&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Oct 2023 09:06:05 GMT</pubDate>
    <dc:creator>Kaushik2020</dc:creator>
    <dc:date>2023-10-05T09:06:05Z</dc:date>
    <item>
      <title>Color by expression</title>
      <link>https://community.qlik.com/t5/App-Development/Color-by-expression/m-p/2125414#M91590</link>
      <description>&lt;P&gt;I am using below expression se set colors for my bar chart.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Measure expression for color:&lt;/P&gt;
&lt;P&gt;if(WildMatch(SkillsetName,'*HH*'), RGB(0, 32, 74),&lt;BR /&gt;if(WildMatch(SkillsetName,'*H*'), RGB(50, 136, 189),&lt;BR /&gt;if(WildMatch(SkillsetName,'*M*'), RGB(169, 204, 227),&lt;BR /&gt;if(WildMatch(SkillsetName,'*L*'), RGB(245, 183, 177),&lt;BR /&gt;RGB(250, 219, 216)))))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bars Expression:&lt;/P&gt;
&lt;P&gt;=if(WildMatch(SkillsetName,'*HH*'), 'High High',&lt;BR /&gt;if(WildMatch(SkillsetName,'*H*'), 'High',&lt;BR /&gt;if(WildMatch(SkillsetName,'*M*'),'Medium',&lt;BR /&gt;if(WildMatch(SkillsetName,'*L*'),'Low',&lt;BR /&gt;'Others'))))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;here i am not able to see colors based on the expression. can anyone please suggest what i am missing here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 07:41:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Color-by-expression/m-p/2125414#M91590</guid>
      <dc:creator>Kaushik2020</dc:creator>
      <dc:date>2023-10-05T07:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: Color by expression</title>
      <link>https://community.qlik.com/t5/App-Development/Color-by-expression/m-p/2125422#M91591</link>
      <description>&lt;P&gt;Hi, can it be that you missing comparison part with each WildMatch?, f.e.&lt;/P&gt;
&lt;P&gt;if(WildMatch(SkillsetName,'*HH*')&lt;FONT color="#FF0000"&gt;&amp;gt;0&lt;/FONT&gt;, RGB(0, 32, 74),&lt;BR /&gt;if(WildMatch(SkillsetName,'*H*')&lt;FONT color="#FF0000"&gt;&amp;gt;0&lt;/FONT&gt;, RGB...&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 07:56:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Color-by-expression/m-p/2125422#M91591</guid>
      <dc:creator>justISO</dc:creator>
      <dc:date>2023-10-05T07:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: Color by expression</title>
      <link>https://community.qlik.com/t5/App-Development/Color-by-expression/m-p/2125461#M91593</link>
      <description>&lt;P&gt;Thanks for your reply. I tried replacing with below.&lt;/P&gt;
&lt;P&gt;=if(WildMatch(SkillsetName,'*HH*')&amp;gt;0, RGB(0, 32, 74),&lt;BR /&gt;if(WildMatch(SkillsetName,'*H*')&amp;gt;0, RGB(50, 136, 189),&lt;BR /&gt;if(WildMatch(SkillsetName,'*M*')&amp;gt;0, RGB(169, 204, 227),&lt;BR /&gt;if(WildMatch(SkillsetName,'*L*')&amp;gt;0, RGB(245, 183, 177),&lt;BR /&gt;RGB(250, 219, 216)))))&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Below is how it looks post updating.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kaushi2020_0-1696496641003.png" style="width: 613px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/117672iADA79E28E7A99B4C/image-dimensions/613x161?v=v2" width="613" height="161" role="button" title="kaushi2020_0-1696496641003.png" alt="kaushi2020_0-1696496641003.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The default ones is like below:&amp;nbsp; &lt;STRONG&gt;also I want to keep the Legend as well. How this can be done ?&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kaushi2020_1-1696496714746.png" style="width: 602px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/117673i2B03C5A388F17230/image-dimensions/602x171?v=v2" width="602" height="171" role="button" title="kaushi2020_1-1696496714746.png" alt="kaushi2020_1-1696496714746.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;thanks&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 09:06:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Color-by-expression/m-p/2125461#M91593</guid>
      <dc:creator>Kaushik2020</dc:creator>
      <dc:date>2023-10-05T09:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Color by expression</title>
      <link>https://community.qlik.com/t5/App-Development/Color-by-expression/m-p/2125482#M91596</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I hope the solution below is effective for you.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;you can simply use the code below to add a final dimension to the script component. When you have a finished field, you can make a master dimension and give the values in that field the color of your choice.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;if(WildMatch(SkillsetName,'*HH*'), 'High High',&lt;BR /&gt;if(WildMatch(SkillsetName,'*H*'), 'High',&lt;BR /&gt;if(WildMatch(SkillsetName,'*M*'),'Medium',&lt;BR /&gt;if(WildMatch(SkillsetName,'*L*'),'Low',&lt;BR /&gt;'Others')))) as SkillsetName&lt;/P&gt;
&lt;P&gt;After that, you can utilize that field as a secondary dimension in the dimension section.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pallavi_96_0-1696499473797.png" style="width: 235px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/117677i54992D09095DF9B3/image-dimensions/235x231?v=v2" width="235" height="231" role="button" title="pallavi_96_0-1696499473797.png" alt="pallavi_96_0-1696499473797.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 09:52:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Color-by-expression/m-p/2125482#M91596</guid>
      <dc:creator>pallavi_96</dc:creator>
      <dc:date>2023-10-05T09:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Color by expression</title>
      <link>https://community.qlik.com/t5/App-Development/Color-by-expression/m-p/2125489#M91597</link>
      <description>&lt;P&gt;Try another approach: first, convert your bars expression (=if(WildMatch(SkillsetName,'*HH*'), 'High High',...) to Master Item (as dimension). In master item properties set color Values for each dimension manually. You'll need to convert your RGB code to HEX:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="justISO_0-1696499921690.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/117678i53D8244F7A220DB0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="justISO_0-1696499921690.png" alt="justISO_0-1696499921690.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Now create this bar chart as 'Bars' using your Master Item dimension, and under 'Colors and legend' set color to 'Custom' by your 'bars expression' dimension:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="justISO_1-1696500069495.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/117679i031C9452244705FE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="justISO_1-1696500069495.png" alt="justISO_1-1696500069495.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 10:01:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Color-by-expression/m-p/2125489#M91597</guid>
      <dc:creator>justISO</dc:creator>
      <dc:date>2023-10-05T10:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: Color by expression</title>
      <link>https://community.qlik.com/t5/App-Development/Color-by-expression/m-p/2126350#M91666</link>
      <description>&lt;P&gt;This is ideal solution in my scenario i think. I never explored the color property where these conditions were visible and we can set custom hex codes for each dimension label. Thanks a lot &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 08 Oct 2023 10:37:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Color-by-expression/m-p/2126350#M91666</guid>
      <dc:creator>Kaushik2020</dc:creator>
      <dc:date>2023-10-08T10:37:15Z</dc:date>
    </item>
  </channel>
</rss>

