Hi all,
I need to dynamically insert a row into a table based on a cell value. I'm able to insert the row, but I haven't figured out how to make it dynamic.
The row will always go above the row with the value "2270PBAKE" in the STAGE column.
I'm using the Table.InsertRows function. For the offset value of that function I put "5" which is correct now but won't always be correct.
This is the code I'm using, from the Power Query advanced editor:
Here's what the table looks like:
Can I replace the offset value "5" in the Table.InsertRows function with a dynamic reference?
Thank you,
Nick
I need to dynamically insert a row into a table based on a cell value. I'm able to insert the row, but I haven't figured out how to make it dynamic.
The row will always go above the row with the value "2270PBAKE" in the STAGE column.
I'm using the Table.InsertRows function. For the offset value of that function I put "5" which is correct now but won't always be correct.
This is the code I'm using, from the Power Query advanced editor:
VBA Code:
NewRows = Table.InsertRows(#"Sorted Rows",5,{[STAGE="Skip pre-bake step 2270PBAKE when using Ormet 701", DESCRIPTION=null, Init=null,Special Notes=null]})
Here's what the table looks like:
Can I replace the offset value "5" in the Table.InsertRows function with a dynamic reference?
Thank you,
Nick