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

Announcements
Now accepting applications for the Qlik Luminary and Partner Ambassador Programs: Apply by July 6!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Week function not working when year changes.

I use the Week function to get the week difference between dates but as the year changed I started facing problems. Can anyone help me with this?

Labels (1)
2 Replies
isingh30
Specialist
Specialist

Can you share your data or app?

MarcoWedel
MVP
MVP

Hi,

maybe you could use some expressions like

I:

Div(Date2-Date1,7)

or

II:

(WeekStart(Date2)-WeekStart(Date1))/7

QlikCommunity_Thread_293849_Pic1.JPG

hope this helps

regards

Marco