Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

Summing values for each business day into weeks amouts

wonka1234
10 - Fireball

Hi,

 

How can I sum for each week like below?

 

Name2023_01_022023_01_032023_01_042023_01_052023_01_062023_01_092023_01_102023_01_112023_01_122023_01_13
Louis Stevens1.11.11.11.11.122222
           
           
expected output         
           
Name 2023_01_022023_01_09       
Louis Stevens5.510        

 

 

Thanks.

7 REPLIES 7
albert_alaluf
10 - Fireball
10 - Fireball

@wonka1234 Can you please provide sample raw data, not crosstab :-) ?

Albert Alaluf
Alteryx ACE
https://www.linkedin.com/in/alaluf/
wonka1234
10 - Fireball

@albert_alaluf  hows this?

 

NameDatesplaceholder
Louis Stevens1/2/20231.1
Louis Stevens1/3/20231.1
Louis Stevens1/4/20231.1
Louis Stevens1/5/20231.1
Louis Stevens1/6/20231.1
Louis Stevens1/9/20230
Louis Stevens1/10/20230
Louis Stevens1/11/20230
Louis Stevens1/12/20230
Louis Stevens1/13/20230
Louis Stevens1/2/20230
Louis Stevens1/3/20230
Louis Stevens1/4/20230
Louis Stevens1/5/20230
Louis Stevens1/6/20230
Louis Stevens1/9/20232
Louis Stevens1/10/20232
Louis Stevens1/11/20232
Louis Stevens1/12/20232
Louis Stevens1/13/20232
albert_alaluf
10 - Fireball
10 - Fireball

perfect, working on it.

Albert Alaluf
Alteryx ACE
https://www.linkedin.com/in/alaluf/
albert_alaluf
10 - Fireball
10 - Fireball

I made some search, and I found another solution. I just implemented to yours. I don't deserver full credit :-)

https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Week-Start-and-End-on-specific...

 

Please marked as a solution if this helps.

 

 

Albert Alaluf
Alteryx ACE
https://www.linkedin.com/in/alaluf/
wonka1234
10 - Fireball

@albert_alaluf  not quite the output looking for.. looking for it to be like this

 

expected output         
           
Name 2023_01_022023_01_09       
Louis Stevens5.510
binuacs
21 - Polaris

@wonka1234 One way of doing this

binuacs_0-1685689459425.png

 

suby
11 - Bolide

Hi Binuacs,

 

Could you please explain the formula on what it does please.

 

IIF(isNull([Row-1:RecordID]),1,

IIF(Mod([Row-1:RecordID],5)=0,[Row-1:ID]+1,[Row-1:ID]))

Labels
Top Solution Authors