Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Color code condition

Document ReceivedPriorityStatus
06 May 2016MediumClosed
07 April 2016HighOpen
07 April 2016HighClosed
06 May 2016Medium

Open

I want

1)if the priority is high and document received (current date- date received) is more than 4 months, status is open then it is coming on red

2)if the priority is medium and document received (current date- date received) is more than 10 months, status is open then it is coming on red

3) if the priority is high and status is closed then it is coming on green


4)if the priority is medium and status is closed then it is coming on green

2 Replies
johnw
Champion III
Champion III

Maybe this?

if(Status='Closed',green()
,if(Priority='High' and today() > addmonths([Document Received],4),red()
,if(Priority='Medium' and today() > addmonths([Document Recieved],10),red())))

Anonymous
Not applicable
Author

if(Status = 'Closed',

  green(),

  if(Priority = 'High' and [Document Received] < AddMonths(Today(),-4) and Status = 'Open',

  red(),

  if(Priority = 'Medium' and [Document Received] < AddMonths(Today(),-10) and Status = 'Open',

  red())))