Alteryx Designer Desktop Discussions

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

30 Day Rolling after every seven days or Sunday

agoel20
5 - Atom

Hi All,

 

I have daily data for a given time period, but I want to calculate previous 30 days rolling sum from a given date in the data only after 7 seven days or every Sunday which means I do not want previous 30 day rolling sum for every day but after every 7 days, I have attached a sample dataset. Appreciate the help from the community.

 

 

3 REPLIES 3
Pang_Hee_Choy
12 - Quasar

please give an example output. 

 

it help people to understand further.

DawnDuong
13 - Pulsar
13 - Pulsar

Hi @agoel20 

Maybe it's just me, I do not 100% understand the description. Can you post a sample input vs. expected output to illustrate? It will be clearer. 

Dawn.

RolandSchubert
16 - Nebula
16 - Nebula

Hi @agoel20 ,

 

if I got you right, you want to aggregate the last 30 days only on Sunday - like this?

 

2022-03-07_08-33-04.jpg

 

You can use a Multi-Row Formula tool to check, if current date is Sunday and only if true aggregate last 30 days. Not very elegant, but works.

 

2022-03-07_08-31-25.jpg 

Let me know if it works for you (or if I did not understand correctly, what you need).

 

Best,

 

Roland

Labels