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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Nikhith
Contributor
Contributor

Color for dates

Hi,

I have one date field in table

Ex:

03-01-2019

04-01-2019

-------

24-01-2019.

 

I want display first five dates(03-01-2019 to 07-01-2019) in one color and next two dates (08-01-2019 to 09-01-2019) in one color.

Again next five days(10-01-2019 to 15-01-2019) in one color and next two dates (16-01-2019 to 18-01-2019) in one color.

The above rule for total date field.

Thaks,

Nikil

 

 

1 Solution

Accepted Solutions
5 Replies
Jacek
Creator
Creator

=if( match( Mod(RowNo(),7), 0,6), rgb(255,0,0), rgb(0,0,255) )

lironbaram
Partner - Master III
Partner - Master III

hi

you can do it by using weekday for setting a date color 

in your example 

in the background example of the font example , you'll use 

=if(WeekDay(Date)<>2 and weekday(Date)<>3,green(),red())

will do the trick

Nikhith
Contributor
Contributor
Author

Hi
Can u give me a Example
Jacek
Creator
Creator

2019-01-22_12h45_52.png

Nikhith
Contributor
Contributor
Author

Thanks Jacek , It's Working
Regards,
Nikil