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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
senarath
Creator III
Creator III

Format Dimension axis labels

Hi

I have created a combo chart adding Day as Dimension. My requirement is to show WeekEnds by a different color

Appreciate any advice as to how to handle this. I need any solution in order to identify week ends.

Thanks

Senarath

Capture.PNG

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Are you viewing this chart for one month at a time? Because 1 can be weekday for 1 month and weekend for another? If it is just 1 week at a time, then may be look at the attached

Capture.PNG

Script:

Table:

LOAD *,

  WeekDay(Date) as WeekDay,

  Day(Date) as Day,

  Month(Date) as Month,

  MonthName(Date) as MonthYear;

LOAD Date(MakeDate(2015, 12, 31) + RecNo()) as Date,

  NORMINV(Rand(), 1000, 10) as Sales

AutoGenerate Today() - MakeDate(2015, 12, 31);

Expression used for color:

=If(Match(WeekDay, 'Sun', 'Sat'), LightRed())

Capture.PNG

View solution in original post

1 Reply
sunny_talwar
MVP
MVP

Are you viewing this chart for one month at a time? Because 1 can be weekday for 1 month and weekend for another? If it is just 1 week at a time, then may be look at the attached

Capture.PNG

Script:

Table:

LOAD *,

  WeekDay(Date) as WeekDay,

  Day(Date) as Day,

  Month(Date) as Month,

  MonthName(Date) as MonthYear;

LOAD Date(MakeDate(2015, 12, 31) + RecNo()) as Date,

  NORMINV(Rand(), 1000, 10) as Sales

AutoGenerate Today() - MakeDate(2015, 12, 31);

Expression used for color:

=If(Match(WeekDay, 'Sun', 'Sat'), LightRed())

Capture.PNG