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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

calculate the number of months between two dates

Hi everyone,

how to calculate the number of months between two dates ?

Any help would be greatly appreciated. Thank you!

Red

1 Solution

Accepted Solutions
danielrozental
Master II
Master II

You can try something basic like floor((date_to - date_from)/30). But maybe that's just too basic.

View solution in original post

2 Replies
Not applicable
Author

hi,

you can try this :

SubStringCount(concat(DISTINCT MonthName(OrderDate)&';'),';')

regards,

Valentin

danielrozental
Master II
Master II

You can try something basic like floor((date_to - date_from)/30). But maybe that's just too basic.