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

DateDiff

Qlik Brasil favor, saberia 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)
2 Replies
prma7799
Master III
Master III

Try like

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