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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Get Previous week Number with Tweak

All,

 

I would like to generate the weeknumber for my date column and then filter the data for previous week.

 

Here the tweak is if we are in Jan-1st week then it has to read previous week i.e., December month's last week data.

 

Thanks

Karthik M

 

 

Labels (3)
2 Replies
Anonymous
Not applicable
Author

any inputs?

akumar2301
Specialist II
Specialist II

Did you Try

TalendDate.getPartOfDate("WEEK_OF_YEAR",Yourdate);

This will week of year , -1 will be previous week number. Then you can filter data accordingly.

To avoid change of year , use “year”along with week of year.