No worries. I added a Custom Column, gave it the name “GetData” and entered this code in the dialog box.
if Text.StartsWith([Balance], "Open") then Table.FirstN([AllRows], 1) else
if Text.StartsWith([Balance], "Closing") then Table.LastN([AllRows], 1) else
#table({},{})
in the formula bar, after the closing parenthesis of that step, I added: [[GetData]]
All that does is it only returns the selected column from the table.
Finally with the double sided arrows I expanded the data.
I hope this is helpful
Select the TransformNestedTable step in the Appied Steps pane
Add [[GetData]] after the closing parenthesis of that step
Now only the selected column from the table is returned
As for: #table( {}, {} )
The result of this M code is an empty table, it makes sure that a type table is returned even when none of the criteria are met - which should be never because your source is a Group By step.
I hope this clarifies it a bit more, let me know if you have additional questions.