Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
Please try this.
Data:
LOAD DATE(Date#(Week_st,'DD/MM/YYYY')) as Week_st, DATE(Date#(Week_end,'DD/MM/YYYY')) as Week_end, week INLINE [
Week_st, Week_end, week
01/10/2018, 05/10/2018, Week1
06/10/2018, 12/10/2018, Week2
13/10/2018, 25/10/2018, Week3
];
Join(Data)
LOAD addyears (Week_st,-1) as Week_st,addyears (Week_end,-1) as Week_end,week Resident Data;
Hi Please try this.
Data:
LOAD DATE(Date#(Week_st,'DD/MM/YYYY')) as Week_st, DATE(Date#(Week_end,'DD/MM/YYYY')) as Week_end, week INLINE [
Week_st, Week_end, week
01/10/2018, 05/10/2018, Week1
06/10/2018, 12/10/2018, Week2
13/10/2018, 25/10/2018, Week3
];
Join(Data)
LOAD addyears (Week_st,-1) as Week_st,addyears (Week_end,-1) as Week_end,week Resident Data;
Please select Correct and Helpful to close the thread. Thank you.
Hi,
Please try like this.
Data:
LOAD Year(DATE(Date#(Week_st,'DD/MM/YYYY')) ) as Year,DATE(Date#(Week_st,'DD/MM/YYYY')) as Week_st,
DATE(Date#(Week_end,'DD/MM/YYYY')) as Week_end, week
INLINE [
Week_st, Week_end, week
01/10/2018, 05/10/2018, Week1
06/10/2018, 12/10/2018, Week2
13/10/2018, 25/10/2018, Week3
];
Join(Data)
LOAD Year(addyears (Week_st,-1)) as Year,addyears (Week_st,-1) as Week_st,addyears (Week_end,-1) as Week_end,week
Resident Data;