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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Duvida DateDiff

Alguém sabe me dizer se esta informação procede?

infelizmente o QV não tem uma função pronta que calcula o número de meses entre duas datas, como por exemplo o DateDiff() do SQL...

Labels (1)
4 Replies
prma7799
Master III
Master III

You can try like this

Num(Year(Date1)) - Num(Year(Date2)) --> gives the Yeardiff

Num(Month(Date1)) - Num(Month(Date2)) --> gives the Monthdiff

Num(Week(Date1)) - Num(Week(Date2)) --> gives the Weekdiff

Num(Date1) - Num(Date2)) --> gives the Daydiff

prma7799
Master III
Master III

Anonymous
Not applicable
Author

Thanks. Not sucess. Only with DateDiff in SQL.

Marco A. Matarassi

2017-08-09 4:36 GMT-03:00 P M <qcwebmaster@qlikview.com>:

prma7799
Master III
Master III

What difficulties are you facing ..

Share some sample app with expected output.