on ‎2021 Aug 27 3:20 PM
We are calculating tenure in years formula for my client ,can anyone help me out with a solution with correction on the below formula using date function. Cust_LastPromotion & Cust_DOJ are columns ids.
round("down",if(cust_LastPromotion="NA",(dateDiff(toDate(cust_DOJ,"dd/mm/yyyy"),toDate("06/06/2021","dd/mm/yyyy"))/365),
(dateDiff(toDate(cust_LastPromotion,"dd/mm/yyyy"),toDate("06/06/2021","dd/mm/yyyy"))/365)))
Request clarification before answering.
I don't know exactly what your error is, but I know you are using the 'toDate' funciton slightly incorrectly. It should be:
toDate("01/01/2023","dd/MM/yyyy")
Note the "MM" versus your "mm".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.