Hi,
I am struggling to find a good scripting solution for this. I would like to select a few columns and then perform calculations across them. The selected columns are flexible, sometimes it could be 2 but sometimes it could be 10+ columns to perform this calculation.
For example
| A | B | C | new column with formula sqrt(sum(A^4, B^4, C^4) |
| 1 | 2 | 3 | ... |
| 4 | 5 | 6 | ... |
| 7 | 8 | 9 | ... |
At this moment, I have the script to extract selected column. But once they are in a list with column name, I don't know how to sum up the column using the formula I have above...
dt = Current Data Table();
cols = dt << get selected columns;
Thank you so much for your help!