Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
qliklearnervir
Creator
Creator

Create a column with weekdays and All days

HI,

 

I have 1 service_date column, where the client wants to create a filter field to select weekdays and all days.

Like when i select weekdays than it should select the number of total days for weekdays in the service_date column.

when i select all days than it should select the number of total days for all days in the service_date column.

 

Labels (1)
1 Solution

Accepted Solutions
tresesco
MVP
MVP

You can try like:

Load

        service_date,

         If( Not Match(Weekday(service_date), 'Sat', 'Sun'), 'WeekDay') as WeekdayFlag

From <>;

Concatenate

Load

        service_date,

         'AllDays' as WeekdayFlag

From <>;

View solution in original post

2 Replies
tresesco
MVP
MVP

You can try like:

Load

        service_date,

         If( Not Match(Weekday(service_date), 'Sat', 'Sun'), 'WeekDay') as WeekdayFlag

From <>;

Concatenate

Load

        service_date,

         'AllDays' as WeekdayFlag

From <>;

Kushal_Chawda

Can you please elaborate?