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: 
Not applicable

Multiple Coloring by Expression in Scatter Plot

New to Qlik Sense here.

I'm trying to color code three dimensions in a scatter plot graph.

I've tried using the "If" statement which works great for color coding TWO dimensions, but won't work for three if I add another "If" statement.

Does anyone have any suggestions on an expression I could use to color code each dimension?

For example, I have dimension 1, 2, and 3, and want to compare then as their data points are very close together.

Thanks!

1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

What is the expression that you are using? I would thinK something like this to work:

If(Dim = 'Dim1', LightRed(),

If(Dim = 'Dim2', LightGreen(),

If(Dim = 'Dim3', Blue())))

View solution in original post

3 Replies
sunny_talwar
MVP
MVP

What is the expression that you are using? I would thinK something like this to work:

If(Dim = 'Dim1', LightRed(),

If(Dim = 'Dim2', LightGreen(),

If(Dim = 'Dim3', Blue())))

Not applicable
Author

Worked great!

I forgot the commas after the first IF statement.

Thanks!

sunny_talwar
MVP
MVP