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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Obtaing last 8 Weeks

Hi All,

I have two tables.

One is DATE Dimension Table and another Table Contains the latest date of data arrival.(LATEST Date Table)

I need to pick this latest date from the 2nd table and match this with the 1st table that is DATE Dimension table

and obtain the last 8  weeks from the DATE DIMENSION TABLE.

I am attaching the sample data set. Plz have a look on it.

Thank You

4 Replies
Not applicable
Author

Sorry maybe im not understanding your query very well but one option, if you have a master calender (which could be what date dimension table is )  is to just put a couple listbox of YEAR and MONTH and then you can just select the last 2 months.

Not applicable
Author

Thanx Lee for reply............

But If I need to pick Last 2 or 3 Weeks.............Then ??

Not applicable
Author

then id set up your master calendar in the following fashion and you can select however you want really. Or use your set analysis around which ever week or months youre after 

dateiddateyearmonthweekno
101/01/2012201211
202/01/2012201211
303/01/2012201211
404/01/2012201211
505/01/2012201211
606/01/2012201211
707/01/2012201211
808/01/2012201212
909/01/2012201212
1010/01/2012201212
1111/01/2012201212
1212/01/2012201212
1313/01/2012201212
1414/01/2012201212
1515/01/2012201213
1616/01/2012201213
1717/01/2012201213
1818/01/2012201213
1919/01/2012201213
2020/01/2012201213
2121/01/2012201213
2222/01/2012201214
2323/01/2012201214
Anonymous
Not applicable
Author

I think this condition can be used:

date <= WeekStart(today(),-8)

Regards,

Michael