Alteryx Designer Discussions

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

Identifying latest 12 months from date column

Sharathkrishnan
6 - Meteoroid

I have 3 columns product,date,sales

There are 3 products.

Each product has 5 years of data month wise

i want to create a new column and if any products last year(12 months) sales value is 0 I should update the value in the column as discontinued for that product..

 

How can this be acheieved in Alteryx

10 REPLIES 10
Emil_Kos
16 - Nebula

Hi @Sharathkrishnan,

 

Can you show expected input and expected output? 

Sharathkrishnan
6 - Meteoroid

Hi Emil,

 input.PNGoutput.PNG

Kurohits
8 - Asteroid

Hi, 

 

I have created a solution as per your inputs shared. Checkout my solution and let me know if it is feasible for you. if not, then share the desired output. If it is as per your requirement, then please accept it as solution. 

Sharathkrishnan
6 - Meteoroid

input.PNGoutput.PNG

Emil_Kos
16 - Nebula

Hi @Sharathkrishnan,


What I am doing here is identifying the max year for each of the product. If max year sales are 0 I am populating status off.

Emil_Kos_0-1623245026709.png

 

Sharathkrishnan
6 - Meteoroid

Here for some records even when sales values are present status is 'off'.Can you help me with it

Emil_Kos
16 - Nebula

Hi @Sharathkrishnan 

 

A corrected version of the workflow.

 

 

Sharathkrishnan
6 - Meteoroid

Hi Emil,

Can you please tell me what was wrong in the previous version ? I am not able to figure it out..

Emil_Kos
16 - Nebula

Hi @Sharathkrishnan,

 

I will reply to your direct message propably tomorrow.

 

Regarding the workflow, I forgot to include only the data that have 0 as a sales value for the year. Previously it set the status for off for each position in the newest year. 

 

Emil_Kos_0-1623248772970.png

 

Labels