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

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!
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?

2 Replies
isingh30
Specialist
Specialist

Can you share your data or app?

MarcoWedel

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