Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
GnomeGuy
Contributor II
Contributor II

Getting Year and Week from YearWeek

Hello all,

Was referring to the function <WeekName> on qlik help, it says that i will get

2013/02 with the expression Weekname('12/01/2013')

 

However, i am unable to get that when i tried the expression in a KPI Chart, getting a number 41.28k instead.

I would like some method to give me the year with the week with a single function without concatenating thanks. 

Appreciate help on this matter. Thank you.

Labels (3)
1 Solution

Accepted Solutions
Kashyap_R
Partner - Specialist
Partner - Specialist

Hi

You can try this 

=Year('12/01/2013')&'/'&Week('12/01/2013')

Thanks

Thanks and Regards
Kashyap.R

View solution in original post

4 Replies
Lisa_P
Employee
Employee

Qlik Sense will internally save dates as integers, so if you want to change the display, you can use the Date function to format.

eg Date(Weekname('12/01/2013'), 'YYYY/MM')

GnomeGuy
Contributor II
Contributor II
Author

Yea, i guess so too.

But how can i get a Year/Week Number with a single function?

Kashyap_R
Partner - Specialist
Partner - Specialist

Hi

You can try this 

=Year('12/01/2013')&'/'&Week('12/01/2013')

Thanks

Thanks and Regards
Kashyap.R
GnomeGuy
Contributor II
Contributor II
Author

Was looking for a single function but it seems that it is not possible. Will stick to using functions Year and Week then. 

Thank you all for the inputs