Hi All,
I need help with making a dynamic multi-row formula.
Calculation itself is a simple compounding. Where N is the first value(row), [(1+Value(n))*(1+Value(n+1))*(1+Value(n+2))]-1...so on. It is actually equivalent of =FVSCHEDULE(1,Value(n),Value(n+1),...)-1 in EXCEL which also seems to exist in Alteryx as FinanceFVSchedule.
The tricky part is that the period (number of rows) is not fixed. It can vary on the workflow outcome. So maybe its 6 rows sometimes, or maybe its 12 rows sometimes.
If someone can help me with a formula/method to calculate compounding of changeable number of values(rows)
Type | Value | DESIRED/EXPECTED OUTCOME |
A | -0.00419 | -0.004193025 |
A | -0.09329 | -0.097093214 |
A | -0.1191 | -0.204630879 |
A | 0.101437 | -0.12395137 |
A | 0.036945 | -0.091586132 |
A | 0.022284 | -0.071342618 |
example:
First outcome: -0.00419 +1 = -0.995806975 -1 = -0.004193025
Second outcome: (1+-0.00419)*(1+0.09329) -> (0.995806975 * 0.906708638)-1 = -0.09709
The Main issue is that the number of rows(periods) will change, so it needs to be dynamic. I can't just hard-code rows or fields.
Calculation itself isn't very important here. I just need to know how to have a multi-row or multi-column formula that will work dynamically even if the number of rows or columns change.
If there is way to do this by column instead of rows, that's even better.
Thank you so much for your time.
Solved! Go to Solution.
Wow seems complex, I will surely take look at them as I need to use user inputs enabled customization later. Thank you so much.
Sorry one very last question for this one! Is it possible to use the RECORDID or something similar, where it will start with 1 WITHIN the the same KEY?
For example, instead of just 1 to 20 consecutively down the column, can I make it populate this way below? it resets from 1 when it is encounters a different KEY.
Key | RecordID |
A | 1 |
A | 2 |
B | 1 |
C | 1 |
C | 2 |
C | 3 |
Unfortunately im using Alteryx 2020.03 and i dont think i have or can use/import this tool..:(
Amazing!!
I don't know how I can thank you enough!
Really saved me a lot of headache and time. Thank you so very much @mceleavey. Wish there was more I can do than just click on Like hahah.
Thank you once again!