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: 
ArielNF93
Contributor
Contributor

subtract weeks

Hi all,

I have the following problem:

I need to subtract weeks, and I would like to know if it is possible.

For example, I have loaded a qvd of transactions, where I do a max(date).
Then, with the peek function, obtain a variable with the maximum date.

Then I load another QVD, where I do a max(week) and I do a where date = variable created previously.

So I have a variable with the maximum week of the qvd loaded.

I do all this because I need to bring information from 12 weeks back from the maximum week.

So my idea is to subtract 12 weeks back. But I can't get to week 47 (currently the maximum week is 7).

I don't know if someone could help me with this problem or maybe you have another better idea to do this.

Labels (1)
1 Reply
tresesco
MVP
MVP

Week(WeekName(yourmaxdate,-12))