Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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.