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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Custom Visual Cues

I have an expression (Latest Date) which shows the latest date per the dimension, DATA TYPE:

Max(Date)

What I want to do is change the color of the text of the expression to RED if the [Latest Date] of the specific data set is < Max(Date) of the entire QV. Below is what I have in the TEXT COLOR prompt of the expression but it is not working as expected:

=if([Latest Period]< (max(Date)),  RGB(255,66,66))

Any help is appreciated!

- dave

1 Solution

Accepted Solutions
effinty2112
Master
Master

Hi Han, sorry David,

It's difficult to answer this without knowing where you're putting the expression. If it's a chart what dimensions are used etc.


Try:

=if([Latest Period]< (max(TOTAL Date)),  RGB(255,66,66))


View solution in original post

2 Replies
effinty2112
Master
Master

Hi Han, sorry David,

It's difficult to answer this without knowing where you're putting the expression. If it's a chart what dimensions are used etc.


Try:

=if([Latest Period]< (max(TOTAL Date)),  RGB(255,66,66))


Anonymous
Not applicable
Author

Andrew - The expression was in a straight table and your solution worked.

Thank you very much!