Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Division between two different lines and cell

hendricksk
7 - Meteor

Is there a way to divide cells from different lines and rows? I was to divide EBITDA $/day 298 by Eggs - Ave oz/day 41. The result should be 7.26.

Products   $/oz         ave oz/day     $/day           $/month
Cake         76            39                  3043           94342
Eggs          76           41                  3199           99178
Icing          97.7        23                   2294          71123
Pudding    106         16                  1732            53703
EBITDA      7.12                            298              9262

I tried a nested IF Then statement but is in error.

 

IF StartsWith([Products], "EBITDA") THEN (ToNumber([k$/Day]/ StartsWith([Products], "Eggs")[ave oz/day])) ELSE " " ENDIF

3 REPLIES 3
griffinwelsh
12 - Quasar

@hendricksk Easiest way to approach this is to use the transpose and cross tab tools for your calculations. See the attached solution

hendricksk
7 - Meteor

Thank  you!

griffinwelsh
12 - Quasar

@hendricksk please mark this thread solved if my solution works for your usecase.

Labels
Top Solution Authors