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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
yanivvl0
Creator III
Creator III

How to Text color expression when value low from prev value ?

Hi everybody ,

i have table with projects , each project can have some steps (and some step_b)  , and for each step can be a date or not (null).

i need to paint in red a date of project step if its value lower than any prev  (existing) date at one of the prev steps in a project ,
something like this :
reddate_3.PNG
1 Solution

Accepted Solutions
antoniotiman
Master III
Master III

In Script

Temp:
LOAD project,step_b,step,date(step_date) as step_date
FROM
https://community.qlik.com/servlet/JiveServlet/download/1345551-295930/reddate_2.xls
(biff, embedded labels, table is Sheet1$);
LOAD *,If(IsNull(step_date),Peek(Date1),step_date) as Date1
Resident Temp
Order By project,step_b;
Drop Table Temp;

Color Text :

If(Not IsNull(step_date),
If(step_date < Aggr(Above(Date1),project,step_b),Red()))

View solution in original post

5 Replies
akshaye_c_navale

Hey ,

Try Above and Below function

antoniotiman
Master III
Master III

Hi yaniv,

may be like this in Text Color

If(Not IsNull(Date),
If(Date < RangeMin(Top(Date,1,RowNo()-1)),Red
()))

Regards,

Antonio

yanivvl0
Creator III
Creator III
Author

hi antoniotiman ,

i tried to implement the expression but no good , i added more info see above ,

the thing is that the order is by step_b and the compre must be in a project dates. THANKS.

antoniotiman
Master III
Master III

In Script

Temp:
LOAD project,step_b,step,date(step_date) as step_date
FROM
https://community.qlik.com/servlet/JiveServlet/download/1345551-295930/reddate_2.xls
(biff, embedded labels, table is Sheet1$);
LOAD *,If(IsNull(step_date),Peek(Date1),step_date) as Date1
Resident Temp
Order By project,step_b;
Drop Table Temp;

Color Text :

If(Not IsNull(step_date),
If(step_date < Aggr(Above(Date1),project,step_b),Red()))

yanivvl0
Creator III
Creator III
Author

hi Antonio ,  now its OK - THANKS !!