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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
rllysm0ll
Contributor
Contributor

Grouping Dates

How do I write a code to create grouping for dates? (In terms of weekend vs weekday)

For Example:

17/7/2023 --> Weekday 

18/7/2023 --> Weekday

22/7/2023 --> Weekend

23/7/2023 --> Weekend

Labels (1)
1 Solution

Accepted Solutions
BrunPierre
Partner - Master II
Partner - Master II

Try:

=If(Match(WeekDay(DateField), 'Sat', 'Sun'), 'Weekend', 'Weekday')

View solution in original post

1 Reply
BrunPierre
Partner - Master II
Partner - Master II

Try:

=If(Match(WeekDay(DateField), 'Sat', 'Sun'), 'Weekend', 'Weekday')