Hello all,
Datediff is a very, very common function in every BI Tools I know, from SQL (https://docs.microsoft.com/fr-fr/sql/t-sql/functions/datediff-transact-sql?view=sql-server-ver15 ) to competitors products.
The concept is simple :
DATEDIFF ( datepart , startdate , enddate )
where datepart can be month, week, year and so on. It's very useful, especially with month or years that can have a variagle length(28-31 and 365-366 days).
Best regards,
Simon
Bi Consultant (Dataviz & Dataprep) @ Business & Decision