In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Subtracting the data based on the Date

akumar2609
8 - Asteroid

I have the below Data set and and I want to subtract the amount based on the Date column. Date and amount will be keep on changing every time.

 

Input Data

Run-Date 

Amount

11/22/2023 18:21-400
11/24/2023 17:45-460
11/25/2023 16:43580

 

I have the above input data where data is group by on the basis of Run-Date column. Now I want the amount variance between these dates.

 

22 Nov was the first date, hence 0 is there in the variance column. Total for for 24 Nov is (-460). Variance should be (-460) - (-400)  = (-60). Similarly for 25 Nov, total is 580 and variance should be 580 - (-460) =  1040.  

 

 

Required Result

Run-Date 

Amount

Variance
11/22/2023 18:21-4000
11/24/2023 17:45-460-60
11/25/2023 16:435801040
1 REPLY 1
alexnajm
19 - Altair
19 - Altair

Sounds like a multi row formula! Here is a workflow:

Subtracting the data based on the Date.PNG

Labels
Top Solution Authors