Hi @Flashback ! Another approach to this would be to generate an indexed array after your colWeightOut collection has been generated:
ForAll(
colWeightOut,
Collect(
col_index,
{
value: Value,
index: CountRows(col_index)
}
)
)
and then where needed set a variable for the next index:
Set(nextIndex,LookUp(col_index, value = rowNumber).index + 1)
and get the value from that index:
LookUp(col_index, index = nextIndex).value
------------------------------------------------------------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.
If you like my response, please give it a Thumbs Up.