Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
ckiesling
Contributor II
Contributor II

Color Expression with Measures

I have a bar chart with 2 measures, Measure A and Measure B. I want to color these bars by a custom color, Measure A = Teal and Measure B=navy, but I am not able to create custom dimensions. Is there a way to do this in the expression itself?

Here are my  2 measures:

Measure A: Avg([Client Hospitalizations.Follow Up Medication Reconciliation Date]-[Client Hospitalizations.Discharge Date])

Measure B: Avg([Client Hospitalizations.Follow Up Contact Date]-[Client Hospitalizations.Discharge Date])

Here is my dimension:

weekday([Client Hospitalizations.Discharge Date])

Labels (6)
2 Replies
Vegar
MVP
MVP

If you put the expressions Measure A and Measure B into master measures then you will have the option to set a color per measure.

These colors can be choosen to be applied to the chart in the color property section of the object. 

ckiesling
Contributor II
Contributor II
Author

I am not able to create master measures. Is there another way to do this? Maybe in the expression itself?