I am extracting data using power from a pdf file with headers and was wondering if there was an easy way to transform the data into a data cube in power query
eg currently it imports like this
Dept Sales
Jo Bloggs 120
John Smith 100
Dept Sales Total 220
Dept Admin
Ned Kelly 80
Butch Cassidy 200
Dept Admin Total 280
And I would like to see it like this is put the dept in the same data line with no header and total lines
Sales Jo Bloggs 120
Sales John Smith 100
Admin Ned Kelly 80
Admin Butch Cassidy 200
Thanks
eg currently it imports like this
Dept Sales
Jo Bloggs 120
John Smith 100
Dept Sales Total 220
Dept Admin
Ned Kelly 80
Butch Cassidy 200
Dept Admin Total 280
And I would like to see it like this is put the dept in the same data line with no header and total lines
Sales Jo Bloggs 120
Sales John Smith 100
Admin Ned Kelly 80
Admin Butch Cassidy 200
Thanks