Alteryx Designer Desktop Discussions

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

Compute # of days difference based on Condition

rdelmund
7 - Meteor

Hi All, 

 

Need help to compute date difference if there's value on the Match field. Need to get the # of days difference on the transaction date column. Source should always be between Grab and AMEX with same amount. 

 

Transaction DateSourceAmountMatch# f days difference
1/23/2019GRAB1022019-01-23,102.00,AMEX0
1/23/2019AMEX102  
1/23/2019GRAB1032019-01-23,103.00,AMEX0
1/23/2019AMEX103  
1/29/2019GRAB104  
1/21/2019GRAB1052019-01-21,105.00,AMEX0
1/21/2019AMEX105  
1/24/2019GRAB1052019-01-24,105.00,AMEX0
1/24/2019AMEX105  
1/24/2019GRAB1062019-01-24,106.00,AMEX0
1/24/2019AMEX106  
1/22/2019GRAB1072019-01-22,107.00,AMEX0
1/22/2019AMEX107  
1/22/2019GRAB1072019-01-22,107.00,AMEX0

 

Thanks, 

Rob

1 REPLY 1
DavidP
17 - Castor
17 - Castor

This formula should work. You can wrap it in an IF statement like IF !isEmpty([Match]) then ... else null() endif if you want

 

date diff.png

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels