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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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
MVP
MVP

@smilingjohn  your syntax is wrong

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

View solution in original post

1 Reply
Kushal_Chawda
MVP
MVP

@smilingjohn  your syntax is wrong

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