Alteryx Designer Desktop Discussions

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

How to calculate the average of the 12 last rows, every row again?

DM_88
6 - Meteoroid

Hi

 

Ho do I calculate the average of the 12 last rows, every row again?

 

So in this case I mean:

 

DM_88_1-1598018320924.png

 

As you can see cell C42 is the average of B31:B42, cell C41 from B30:B41, etc.

 

Can I make a similar calculation in Alteryx? If yes, how does it work?

 

Attached you can find both documents.

 

Thanks a lot!

 

Kind regards

DM_88

3 REPLIES 3
Emil_Kos
17 - Castor
17 - Castor

Hi @DM_88 ,


Probably there are hundreds of more efficient ways but I think my will solve your problem.

MarqueeCrew
20 - Arcturus
20 - Arcturus

Hey @DM_88 ,

 

I suggest that you download the CReW macros and use our moving summarize. 

http://downloads.chaosreignswithin.com/Macros.zip  

 

cheers,

 

mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
DM_88
6 - Meteoroid

Hi Emil

 

The only thing I needed to change in your calculation was Type to Double but your solution works perfect!

 

Thanks a lot.

 

Grtz

DM_88

Labels