how to script for finding maximum, minimum date value in a row for 100+ columnsi have a table with 500+ rows and 100+ columns. Populated with numeric values (dates). I need to find the maximum and minimum value along each row for earliest and latest date. i guess the script would be similar to 'Maximum (column1........column100)' for each row. But i am not sure how to script the column ranges along each row.
Data TableScriptingRe: how to script for finding maximum, minimum date value in a row for 100+ columnsHi,
Have you considered transposing your data (Rows become Column and reciprocaly)? You would then be able to use the Col Minimum and Col Maximum formulas.
Best,
TSRe: how to script for finding maximum, minimum date value in a row for 100+ columnsHi @tonkatsu2020 ,
Something you might want to consider is whether or not your data table is "oriented" or arranged in the right way. Normally, you'd want to have a single column with data and then the rows would be each new instance of whatever it is you're looking at.
You might consider transposing your data. Then, it's just easy to find the Col Maximum() and Col Minimum(). However, this might not be what you're after. Can you share an anonymized version of your table? That might help in understanding how your data is structured and what you want to do with it.
DS
Re: how to script for finding maximum, minimum date value in a row for 100+ columnsHere is a simple formula that will find all of the continuous columns in your data table, and then calculate the maximum value for those columns. Just use it as the formula for a new column
If( Row() == 1,
theList = Current Data Table() << get column names( continuous )
);
Max( theLIst );
Re: how to script for finding maximum, minimum date value in a row for 100+ columnsif i want to use only a range of columns, NOT all columns, how do i script this? Lets say i want to use only 10th column to 100th column for all the rows; how do i script this?Re: how to script for finding maximum, minimum date value in a row for 100+ columnsI think it'd be simple. Just create a new column with formula Min(:Col1, :Col2,....,:Coln)
You can drag and drop all columns into the formula editor.