Alteryx Designer Desktop Discussions

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

SUMIF based on current row date <=

pateldev22
7 - Meteor

I wanted to perform a SUM on all measures where the data is less than/equal to the current rows date. For example,

 

CategoryDateBenefits $Calculated SUM  
A06/08/2020

5

25  
A06/09/20201035  
A06/10/20201550  
A05/02/2020

10

10  
A06/01/20201020  

 

 

3 REPLIES 3
BrandonB
Alteryx
Alteryx

One possible approach is appending the data to itself, feeding it through a filter where the source date <= the date column, summarizing on the date column with the fields desired, and then joining this back to your original data set. Workflow is attached. 

 

Sum dates less than.png

BrandonB
Alteryx
Alteryx

The Running Total tool may also be of interest if your dates are already sorted in the order that is desired. This sums up a column of data within the group specified. 

RobertOdera
13 - Pulsar

Hi, @pateldev22 

 

Try this.

Please mark as an acceptable solution + like, if it works for you.

RNO2_0-1591654960754.png

Cheers!

 

Labels