Hi all!!
I create list using List.AddItemToEnd and I want to get list [ [0] , [-0.17,0.17] ,[-0.22,0.22] , [-0.25] [-0.25] ]
but I can’t achieve the result by changing the levels
Does anyone know why?
Did you try setting item level at @1 too?
I’ll behind a PC in like a hour.
I’ll have a look then.
But i think a solution can be to just use the
List.Create
node instead of the List.AddItemToEnd
as that might just add a single item to the end of a list(?).
@vaaSNLDZ I saw the . Is it also the solution? If so please mark as solution too.
Due to how that node works, you’ll need to flatten the result one way or another. The node adds a single item to an existing list. It seems like you want both items added to the list while maintaining the same list levels. That’s not possible with the structure that you have (without some additional processing, like flattening the structure).
I think you just want a List.Join node, but am not entirely clear on what the desired structure is… may have to flatten before joining as @Nick_Boyts indicated.
I guess this is a prime example of how there are multiple solutions to a problem.
this is what I really needed
Thank you!!