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

Identifying latest 12 months from date column

Sharathkrishnan
7 - Meteor

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
17 - Castor
17 - Castor

Hi @Sharathkrishnan,

 

Can you show expected input and expected output? 

Sharathkrishnan
7 - Meteor

Hi Emil,

 input.PNGoutput.PNG

Kurohits
10 - Fireball

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
7 - Meteor

input.PNGoutput.PNG

Emil_Kos
17 - Castor
17 - Castor

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
7 - Meteor

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

Emil_Kos
17 - Castor
17 - Castor

Hi @Sharathkrishnan 

 

A corrected version of the workflow.

 

 

Sharathkrishnan
7 - Meteor

Hi Emil,

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

Emil_Kos
17 - Castor
17 - Castor

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