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

Calculate current row using previous row value

Caezar
5 - Atom

Hi,
I have a problem with Multi-Row Formula tool.
I need to use the value of stock "Estoque Final (Pç)" of previous month "Mês" and divide by the field sales "Vnd (Pç)" of current row.
I drew this workflow, but the result is not as expected. In the final file, the result of this calculated field is current stock "Estoque Final (Pç)" divided by current sales "Vnd (Pç)".
What's wrong?

1 REPLY 1
MarqueeCrew
20 - Arcturus
20 - Arcturus

@Caezar,

 

I updated your workflow as:

 

  1. Convert date format to YYYY-MM-DD with "Date" macro.
  2. Use DATE field rather than input mes.
  3. Modified Summarize & Sort with DATE.
  4. Modified MULTI-ROW FORMULA to remove group by DATE and to put NULL for oldest date in group.

Is this closer to what you were trying to achieve?

 

I hope so.

 

Cheers,

Mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
Labels