davidleal
Mar 24, 2023Iron Contributor
Another issue with BYROW
I have found the the following formula, doesn't provide the correct result: =BYROW(SEQUENCE(2), LAMBDA(i, SUM(INDEX({1,2;3,4},i,)))) If I use implicit intersection operator @ it works, for ...
- Mar 24, 2023
Since you use BYROW() each element of SEQUENCE(2) is passed to lambda as an array, i.e. it will be like
INDEX( {1,2;3,4},{i},)
To return entire row in this case you shall use column numbers as array as well
=INDEX({1,2;3,4},{1},{1,2})
MAP() returns single value of the array element, thus it works.
With BYROW() - yes, we need to transform an array to single value, as "@i" or INDEX(i,1,1).