Skip to main content
Announcements
Qlik Cloud maintenance is scheduled for this weekend May 11-12. View maintenance windows per region here.

Qlik Sense: Custom Color by Measure using Library Colors in Master Items

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
Sonja_Bauernfeind
Digital Support
Digital Support

Qlik Sense: Custom Color by Measure using Library Colors in Master Items

Last Update:

May 10, 2022 3:23:50 PM

Updated By:

Jamie_Gregory

Created date:

May 24, 2017 10:05:43 AM

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.

 

Environment:

Qlik Sense Enterprise on Windows 
Qlik Cloud 
Qlik Sense Business 



Follow these steps:

  1. Create your Master Item using one of your "Measure" or "Dimension" (in this example we will use a "Dimension" called "Dim1"), select the desired dimension and click "Save":
    servlet (1).jfif

     

     

    2. Now go to "Master Items" and click to the Master Item we just created (Dim 1), right click and "Edit":
    servlet (2).jfif

     

     

    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":
    servlet (3).jfif

     

     

    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:
    servlet (4).jfif

     

     

    5. To make the colors display, you need to select the chart, then go to "Appeareance" > "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":

    servlet (5).jfif

     



     

    With this approach, it is also possible to use custom colors in your legend which is not the case when using "Color by Expression".

    It is also possible to get persistent colors by dimensions and expressions in chart as shown in this article.
Labels (1)
Version history
Last update:
‎2022-05-10 03:23 PM
Updated by: