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: 
marishnagendran
Creator
Creator

Exclude Sunday between two dates

Dear All,

I have a From Date and To_Date between this two dates i want to exclude Sunday in Front-end

Example:

From date it is in variable ('21-06-2020')

To date is (Today()-1)

Between this two dates i want to eliminate the 4 sunday dates(21-06-2020 starts in sunday,28-06-2020,05-07-2020,12-07-2020)

Need your help

 

Labels (1)
1 Solution

Accepted Solutions
Saravanan_Desingh
MVP
MVP

You can use the flag to ignore the days.

tab1:
LOAD Date('6/21/20'+IterNo()-1) As TranDate,
	 WeekDay('6/21/20'+IterNo()-1) As TranDN,
	 If(WeekDay('6/21/20'+IterNo()-1)='Sun','Y') As SunFlag
AutoGenerate 1
While Date('6/21/20'+IterNo()-1)<=Today();

commQV49.PNG

View solution in original post

2 Replies
Kushal_Chawda
MVP
MVP

What exactly do you want to do? Do you want to find working days between two Date?

Saravanan_Desingh
MVP
MVP

You can use the flag to ignore the days.

tab1:
LOAD Date('6/21/20'+IterNo()-1) As TranDate,
	 WeekDay('6/21/20'+IterNo()-1) As TranDN,
	 If(WeekDay('6/21/20'+IterNo()-1)='Sun','Y') As SunFlag
AutoGenerate 1
While Date('6/21/20'+IterNo()-1)<=Today();

commQV49.PNG