Start Free Trial

Alteryx Designer Desktop Discussions

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

Calculate number of days in Alteryx

SH_94
11 - Bolide

Can we use alteryx to calculate number of days of shown below :

 

The results below i use excel to calculate it and wondering if Alteryx able to deduct the days for us based on two different date.

Jacob_94_1-1614765875185.png

 

3 REPLIES 3
Emil_Kos
17 - Castor
17 - Castor

Hi @SH_94,

 

The formula for this should look like this:

 

DateTimeDiff([Date End],[Date Begin],'days')

 

Just remember that you need to have data in date format. I have prepared workflow for you:

 

Emil_Kos_0-1614766121430.png

Output:

 

Emil_Kos_1-1614766164390.png

 

 

JosephSerpis
17 - Castor
17 - Castor

Hi @SH_94 the function DateTimeDiff is what you need to use the syntax DateTimeDiff([A],[B],"days") will produce the results you expect. I mocked up a workflow to showcase this, let me know what you think?

grazitti_sapna
17 - Castor

Hi @SH_94,

 

This is my take on this problem. I hope it helps.

 

grazitti_sapna_0-1614769198099.png

 

If it solves your purpose, please mark it as a solution.

 

 

Sapna Gupta
Labels
Top Solution Authors