Hello everyone, I have a beginners question on performing quick calculations on a whole row.
Let's say I have a large table, where the rows represent products, and the columns are different customers (let's say the data is number of items sold per customer).
| Products | Customer 1 | Customer 2 | Customer 3 | Customer 4 | ... | Customer N |
| A | xxx | xxx | xxx | xxx | | xxx |
| B | xxx | xxx | xxx | xxx | | xxx |
| ... | | | | | | |
| M | xxx | xxx | xxx | xxx | | xxx |
What I would like to do is to add columns "median", "max", "min", "percentile" with the respective numbers computed for the entire row (except for the first column, which I have deselected with a select tool for my purpose).
When using the formula tool, I can use "Max(v0, v1)", and replacing the v0,v1 with all the columns that I have. Is there a command I can type in that the tool automatically selects all columns? This would not only be more convenient, but I am also using differently sized inputs and I would be able to run the workflow without changing the formula expression.
The only workaround I was able to think about is to transpose the whole table with crosstab and transpose, and then instead of using the Formula tool, use Summarize to do all the calculations, and then transpose back. Is there a better way for doing this?
PS: Is there a simple expression for the Formula tool to calculate e.g. the 25th percentile? Or would that require a workflow, e.g. with ranking the numbers etc.?
Thank you so much for your help!