Alteryx Designer Desktop Discussions

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

Calculating a formula in a new row and multi-row formula help

MX
5 - Atom

I have the following data:

IncomePercentile 
10.002486
20.003284
30.004051
40.004174
50.006552
60.009528
70.014147
80.017845
90.022156
100.027112
110.035168
120.050051
130.068986
140.088641
150.108235
160.128765
170.151796
180.174628
190.204993

...... which continues up to the 100th percentile 

 

The percentile numbers are not regular so I want to create an extra row (in the right numerical location) to find the income number for the 50th percentile on Excel I would use the following formula, how would I translate this into alteryx? 

 

Untitled22.png

 

 

I then want to create a new column which has a few separate irregular formulas in it some of which rely on numbers from column B - I presume this would be through using the multi-row formula? 

1. For the last row in the column I want to calculate them using the calculated 50th percentile number multiplied by other numbers I already have 

2. For the 50th percentile row in the new column I want to be able to input a number I already have

3. For the first row and all the interim cells I want to calculate them in relation to either bottom and mid or mid and top point and also in proportion to the figures in column A

 

I have attached an excel with the formulas I'd use in Excel to do it

 

Thanks for the help

3 REPLIES 3
T_Willins
14 - Magnetar
14 - Magnetar

Hi @MX,

 

An interesting challenge.  Ended up pulling out each of the "special" calculation rows separately to pull out each "cell" needed for the formulas.  Last Formula tool calculates the New Column from these "cells".  Some of the new fields are created are to rename them to your Excel formulas so you can trace the calculations.  I put annotations in the workflow where I though it may need explanation beyond just looking at the tools.  You can also hard code the known input for the 100th Percentile formula, but I brought it in from a text field in case this needs to change.

 

Calc Column.png

 

 

 

MX
5 - Atom

Thank you so much for your help! 

When I open the workflow it looks slightly different to your screenshot and like it's missing the final two containers  - would it be possible to upload the full workflow?

Thanks!new column.png

T_Willins
14 - Magnetar
14 - Magnetar

Sorry.  I think I attached it before hitting save after adding the containers.  Attached.

Labels