<?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>article Qlik Sense: Custom Color by Measure using Library Colors in Master Items in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-Custom-Color-by-Measure-using-Library-Colors-in/ta-p/1716156</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Qlik Sense allows you to create custom colors for your Measures and Dimensions in a Bar Chart, Line Chart etc. by using Master Items and Color Library.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;STRONG&gt;Environment:&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;LI-PRODUCT title="Qlik Sense Enterprise on Windows" id="qlikSenseEnterpriseWindows"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;BR /&gt;&lt;LI-PRODUCT title="Qlik Sense Enterprise SaaS" id="qlikSenseEnterpriseSaaS"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;BR /&gt;&lt;LI-PRODUCT title="Qlik Sense Business" id="qlikSenseBusiness"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Follow these steps:&lt;/STRONG&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;Create your Master Item using one of your&amp;nbsp;"Measure" or "Dimension" (in this example we will use a "Dimension" called "Dim1"), select the desired dimension and click "Save":&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="servlet (1).jfif" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/52420i1A126495CEB13326/image-size/large?v=v2&amp;amp;px=999" role="button" title="servlet (1).jfif" alt="servlet (1).jfif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="tinyMceEditorPatricia_Silva_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;2. Now go to "Master Items" and click to the Master Item we just created (Dim 1), right click and "Edit":&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="servlet (2).jfif" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/52421iC12C181CB11FE31B/image-size/large?v=v2&amp;amp;px=999" role="button" title="servlet (2).jfif" alt="servlet (2).jfif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="tinyMceEditorPatricia_Silva_1" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;3. Now go to the second sheet called "Value colors" and set the colors for each dimension (in this case green, red and yellow) and click "Save":&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="servlet (3).jfif" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/52422i17BDED6C1137F395/image-size/large?v=v2&amp;amp;px=999" role="button" title="servlet (3).jfif" alt="servlet (3).jfif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="tinyMceEditorPatricia_Silva_2" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;4. Now we can build our chart with the Master Item we just created, just drag the Master Item to the chart and then add a measure (Expression 1 for example), as you can see, it is not displaying the colors:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="servlet (4).jfif" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/52423i3F77FD43DF47E156/image-size/large?v=v2&amp;amp;px=999" role="button" title="servlet (4).jfif" alt="servlet (4).jfif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="tinyMceEditorPatricia_Silva_3" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;5. To make the colors display, you need to select the chart, then go to "Appeareance" &amp;gt; "Colors and legend" and set Colors to Custom and select "By dimension" and then select the dimension you created in the Master Item (Dim1 in this case), and make sure set "Library colors" to "On":&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="servlet (5).jfif" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/52424i647185866E80A373/image-size/large?v=v2&amp;amp;px=999" role="button" title="servlet (5).jfif" alt="servlet (5).jfif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;DIV id="tinyMceEditorPatricia_Silva_4" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;With this approach, it is also possible to use custom colors in your legend which is not the case when using "Color by Expression".&lt;/SPAN&gt;&lt;/P&gt;
&lt;SPAN style="font-family: inherit;"&gt;It is also possible to get persistent colors by dimensions and expressions in chart as shown in &lt;A title="Persistent colors" href="https://community.qlik.com/t5/Knowledge/How-to-get-persistent-colors-in-Qlik-Sense-charts/ta-p/1831310" target="_self"&gt;this article&lt;/A&gt;.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
    <pubDate>Tue, 10 May 2022 19:23:50 GMT</pubDate>
    <dc:creator>Sonja_Bauernfeind</dc:creator>
    <dc:date>2022-05-10T19:23:50Z</dc:date>
    <item>
      <title>Qlik Sense: Custom Color by Measure using Library Colors in Master Items</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-Custom-Color-by-Measure-using-Library-Colors-in/ta-p/1716156</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Qlik Sense allows you to create custom colors for your Measures and Dimensions in a Bar Chart, Line Chart etc. by using Master Items and Color Library.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;STRONG&gt;Environment:&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;LI-PRODUCT title="Qlik Sense Enterprise on Windows" id="qlikSenseEnterpriseWindows"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;BR /&gt;&lt;LI-PRODUCT title="Qlik Sense Enterprise SaaS" id="qlikSenseEnterpriseSaaS"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;BR /&gt;&lt;LI-PRODUCT title="Qlik Sense Business" id="qlikSenseBusiness"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Follow these steps:&lt;/STRONG&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;Create your Master Item using one of your&amp;nbsp;"Measure" or "Dimension" (in this example we will use a "Dimension" called "Dim1"), select the desired dimension and click "Save":&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="servlet (1).jfif" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/52420i1A126495CEB13326/image-size/large?v=v2&amp;amp;px=999" role="button" title="servlet (1).jfif" alt="servlet (1).jfif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="tinyMceEditorPatricia_Silva_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;2. Now go to "Master Items" and click to the Master Item we just created (Dim 1), right click and "Edit":&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="servlet (2).jfif" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/52421iC12C181CB11FE31B/image-size/large?v=v2&amp;amp;px=999" role="button" title="servlet (2).jfif" alt="servlet (2).jfif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="tinyMceEditorPatricia_Silva_1" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;3. Now go to the second sheet called "Value colors" and set the colors for each dimension (in this case green, red and yellow) and click "Save":&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="servlet (3).jfif" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/52422i17BDED6C1137F395/image-size/large?v=v2&amp;amp;px=999" role="button" title="servlet (3).jfif" alt="servlet (3).jfif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="tinyMceEditorPatricia_Silva_2" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;4. Now we can build our chart with the Master Item we just created, just drag the Master Item to the chart and then add a measure (Expression 1 for example), as you can see, it is not displaying the colors:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="servlet (4).jfif" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/52423i3F77FD43DF47E156/image-size/large?v=v2&amp;amp;px=999" role="button" title="servlet (4).jfif" alt="servlet (4).jfif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="tinyMceEditorPatricia_Silva_3" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;5. To make the colors display, you need to select the chart, then go to "Appeareance" &amp;gt; "Colors and legend" and set Colors to Custom and select "By dimension" and then select the dimension you created in the Master Item (Dim1 in this case), and make sure set "Library colors" to "On":&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="servlet (5).jfif" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/52424i647185866E80A373/image-size/large?v=v2&amp;amp;px=999" role="button" title="servlet (5).jfif" alt="servlet (5).jfif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;DIV id="tinyMceEditorPatricia_Silva_4" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;With this approach, it is also possible to use custom colors in your legend which is not the case when using "Color by Expression".&lt;/SPAN&gt;&lt;/P&gt;
&lt;SPAN style="font-family: inherit;"&gt;It is also possible to get persistent colors by dimensions and expressions in chart as shown in &lt;A title="Persistent colors" href="https://community.qlik.com/t5/Knowledge/How-to-get-persistent-colors-in-Qlik-Sense-charts/ta-p/1831310" target="_self"&gt;this article&lt;/A&gt;.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Tue, 10 May 2022 19:23:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-Custom-Color-by-Measure-using-Library-Colors-in/ta-p/1716156</guid>
      <dc:creator>Sonja_Bauernfeind</dc:creator>
      <dc:date>2022-05-10T19:23:50Z</dc:date>
    </item>
  </channel>
</rss>

