Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

week number

I am looking for an expression to create a variable that hold a week number like the expression below for month number:

let vMaxMonth = '=month(max(Date_Dt))';

8 Replies
Anonymous
Not applicable
Author

Did you try week() function?

Not applicable
Author

yes I have tried the following Michael but I don't know if is the right function as I am new to qlikview:

let vMaxWeek = '=week(max(Date_Dt)';

avinashelite

please try with week() function

avinashelite

hi

it depends on your requirement , what is exact requirement ?? so that we can help you with rite function

Not applicable
Author

hi Avinash,

my requirement is to get WTD data of the same week last year........eg (my week start on a sunday.....02/02/2014 )

avinashelite

Hi Judas,

week() function is the better option for this.

Not applicable
Author

hi Avinash,

can you send me example that you have ....cause I don't know which function to use between....

inweek() and inweektodate()

avinashelite

please go through this document: