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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to change color for all data points based upon a rule?

Hi Experts,

           I tried to change colors for the data points meeting a rule - three of four continuous points on one line are higher than those on another line. Right now the color was only changed on the first data point. Not sure why. Please refer to the file in the attachment.

Thanks

Longmatch

3 Replies
Anonymous
Not applicable
Author

as the graph you okay, really this just changing color if 3 of the 4 points are higher. But the expression is evaluated points from right to left. to evaluate from left to right should be BEFORE the function.


Try putting
if (rangesum (below (if (% Data>% R, 1, 0), 0,4))> = 2, Black (), Yellow ())


The expression is fine.

Not applicable
Author

Check this blog. Hope this helps you to solve.

Not applicable
Author

Tried your solution, no luck. There is still one data point colored in black.