Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

Need to average the number with limitation in it

Pradeepkumar
6 - Meteoroid

Hi Team

 

Can you please assist me on the below.

 

I have sales data and i have tag attached to all the data, Promo or Non Promo.

i need to create new header (baseline) and for that i need to update average price of three rolling period of Sales data.

 

But i have a check point here, Where ever sales data is tagged as Promo, Baseline average is calculated using rolling periods of NON promo tagged sales it should not include Promo tagged, And if i dont have three months data it should not calculate the data. 

 

I have attached file for reference, Both input and the desired out what i want, Can you please assist me.

Let me know for more clarification.

 

Regards

Pradeep

3 REPLIES 3
BenMoss
ACE Emeritus
ACE Emeritus

Here is a solution that meets the requiremnts you have outlined.

 

Unfortunately I don't have time to do a write up but check it out and fire on questions my way and I can respond later!

 

Ben

MarqueeCrew
20 - Arcturus
20 - Arcturus

@Pradeepkumar,

 

Not seeing @BenMoss working on this, I solved it this way:

 

capture.png

 

Hopefully we are both right and solvers of your challenge.

 

Cheers,
Mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
ponraj
13 - Pulsar
Have already posted a solution for this case. Look at your previous post in this regard.
https://community.alteryx.com/t5/Alteryx-Designer-Discussions/Need-to-Create-Average-numbers-with-li...

Labels