Quick Question. Is there a way we can get the same solution by making changes using interface, because this will help me to understand the solution in a easy way, So that I can replicate the same in future scenarios.
Apart from the BufferStep it’s fully UI. Here’s the process:
Sort your table so Departments show before blank/empty department values.
Add a manual step by pressing the fx in front of the formula bar, this returns the previous step name, wrap de function Table.Buffer around it. This loads the table into memory and makes sure your sort order is preserved.
Select both “E-Code” and “Name” columns, right click the header and select remove duplicates.
All done. If you compare the code with the one I’ve shared above the only difference will be the step names.
I hope this is helpful.