Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

DateTimeDifference with decimal Months.days

jenniferte
6 - Meteoroid

Hi,

 

Need some help to calculate the DateTimeDifference with decimal Months.days:

Example:

 

Date Start=2023-12-29

Date End=2024-03-12

 

Months.days= 2.12days

4 REPLIES 4
Qiu
21 - Polaris
21 - Polaris

@jenniferte 
A quick sample as below.
First we calculate the difference for Month between dates, then add the dffrence of Month to the "Start Date" then calculate the difference between new Start Date and End Date.

0312-jenniferte.png

jenniferte
6 - Meteoroid

Thank you so much Qui! 

jenniferte
6 - Meteoroid

Thank you Qui!

Qiu
21 - Polaris
21 - Polaris

@jenniferte 
Glad to help.

Labels
Top Solution Authors