Alteryx Designer Desktop Discussions

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

Calculating Due Dates

bighead
5 - Atom

Super noob question and I'm sure I'm missing something really simple. I'm attempting to calculate the due date in a new column using the invoice date and terms in days. The goal is to identify early and late payments based on the payment terms. What is the most efficient method to do this? 

 

Sample Data

 

INVOICE DATETERMS
26-Apr-23DUE ON REC
12-Sep-23NET 10
16-Dec-22NET 45
17-Nov-22NET 45
10-Oct-23NET 60
14-Sep-23NET 60

 

I created another column to get the 'Terms' column to a numeric value only but I cant figure out how to create the fourth column (Due Date) in Alteryx as easily as I can in excel with a simple Terms_Date+Terms2 formula. I would also like to remove weekends and holidays. The table below is my desired result in Alteryx:

 

INVOICE DATEPAYMENT DATETERMSTERMS2DUE DATE
26-Apr-2329-Apr-23DUE ON REC026-Apr-23
12-Sep-2319-Sep-23NET 101022-Sep-23
16-Dec-223-Jan-23NET 454530-Jan-23
17-Nov-221-Jan-23NET 45451-Jan-23
10-Oct-239-Dec-23NET 60609-Dec-23
14-Sep-2315-Nov-23NET 606013-Nov-23
3 REPLIES 3
alexnajm
16 - Nebula
16 - Nebula

DatetimeAdd([Invoice Date],[Terms2],'days') should work

bighead
5 - Atom

I knew I was missing something! I tried this at first but I kept getting an error that my second argument wasn't a number so I didn't think it was the right solution, what I didn't do was make the Terms2 data a numeric data type. 🙄

 

Thank you!

alexnajm
16 - Nebula
16 - Nebula

Happy to help! If you feel good about the response, feel free to mark the response as a solution so others know it was helpful. Thank you in advance!

Labels