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: 
P_Kale
Creator II
Creator II

How to identify whether it is Saturday or sunday from Date

Hi,

I have various dates in data from those date how I will know whether that date belongs to Saturday or Sunday.

If it belongs to Saturday or Sunday then only in another column it should wright SAT or SUN depends on date. For e.g.

09/12/2023 then 'SAT'

10/12/2023 then 'SUN'

11/12/2023 then NULL etc.

Labels (1)
1 Solution

Accepted Solutions
Anil_Babu_Samineni

Perhaps this?

If(WeekDay(DateField)='Sat', 'Sat', 

     If(WeekDay(DateField)='Sun', 'Sun', 'Null'))

More info, weekday - script and chart function | Qlik Sense on Windows Help

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

3 Replies
Or
MVP
MVP

Weekday(), perhaps?

Anil_Babu_Samineni

Perhaps this?

If(WeekDay(DateField)='Sat', 'Sat', 

     If(WeekDay(DateField)='Sun', 'Sun', 'Null'))

More info, weekday - script and chart function | Qlik Sense on Windows Help

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
P_Kale
Creator II
Creator II
Author

Thanks it is working