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: 
smilingjohn
Specialist
Specialist

Convert to weekend

Hi All 

I am trying to implement the master calendar from below script . But I am not able to get the weekend from this script can soemeone please help me wiht this 

Calendar:
LOAD

Date(MinDate + IterNo() -1,'DD/MM/YYYY') as Date,
Date(MinDate + IterNo() -1,'YYYY') as Year,
Date(MinDate + IterNo() -1,'MM/YY') as Month,
Date(WeekEnd(MinDate + IterNo() -1,'MMM/DD/YY')) as WeekEnd,
//Date(WeekEnd(Date#(TempDate,'MM-DD-YYYY')),'DDMMMYY')
Date(MinDate + IterNo() -1,'YY') & '_' & Num(Week(MinDate + IterNo() -1),'00') as Week

While
MinDate + IterNo() -1 <=MaxDate;

LOAD
min(Date) as MinDate,
max(Date) as MaxDate

Resident Transactional;

 

Thanks in Advance

1 Solution

Accepted Solutions
Kushal_Chawda

@smilingjohn  your syntax is wrong

Date(WeekEnd(MinDate + IterNo() -1),'MMM/DD/YY') as WeekEnd,

View solution in original post

1 Reply
Kushal_Chawda

@smilingjohn  your syntax is wrong

Date(WeekEnd(MinDate + IterNo() -1),'MMM/DD/YY') as WeekEnd,