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: 
racer25
Creator
Creator

Colour Bar Chart Dependent on TIME total

Hi

I am tried to colour code the bar's on bar chart based on total time ( and as posting here without success ).

I have in the Background Colour entered;

=if(Interval(sum(Time)) >= 7.5, RGB (243, 193,68), RGB(42, 194,231))

I have had this feature working before in the past where it was numerical rather than time based calculations.

I have attached a mock-up with Wednesday and Thursday to be Blue and other days to be Amber.

I'd appreciate some help on getting working.

Thanks,

Rob

1 Solution

Accepted Solutions
Frank_Hartmann
Master II
Master II

try this as colour-expression:

=if(Interval(Time) >= '07:30', RGB (243, 193,68), RGB(42, 194,231))

hope this helps

View solution in original post

4 Replies
Anil_Babu_Samineni

Check this?

Capture.PNG

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
racer25
Creator
Creator
Author

That is what should happen.

I have opened your file on both my own copy of Qlikview v12 and our Server install 11.2 and when opening your file and still get all blue.

Frank_Hartmann
Master II
Master II

try this as colour-expression:

=if(Interval(Time) >= '07:30', RGB (243, 193,68), RGB(42, 194,231))

hope this helps

racer25
Creator
Creator
Author

That worked - thanks.

Clearly needed the time format to match if question.