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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Sai_Mohan
Contributor III
Contributor III

Using week Function

Hi all,

I have doubt of creating week function, which should show "yearweekdate ".

In my case, I need to calculate week function where I need to get values as weeks

For example: Assume using year as '2019' and the week will be like '17th week '.

it should display like this:      '2019W17'--- here 17 is number of my week.

Labels (1)
1 Solution

Accepted Solutions
JordyWegman
Partner - Master
Partner - Master

Hi,

If your field contains really the '17th week', use this formula:

Year & 'W' & Left(Week,2) as YearWeek

If you have a Date field, like 31-12-2019, use this formula:

Year(Date) & 'W' & Week(Date) as YearWeek

 Jordy

Climber

Work smarter, not harder

View solution in original post

2 Replies
JordyWegman
Partner - Master
Partner - Master

Hi,

If your field contains really the '17th week', use this formula:

Year & 'W' & Left(Week,2) as YearWeek

If you have a Date field, like 31-12-2019, use this formula:

Year(Date) & 'W' & Week(Date) as YearWeek

 Jordy

Climber

Work smarter, not harder
Sai_Mohan
Contributor III
Contributor III
Author

Thank you Jordy