I have a report that I'm given monthly that I'm hoping to clean up and automate using Powerquery. It is a summary of sales performance, grouped by store location, so that every four or five rows, there is a row that's just displaying city name, like so:
Products: Dallas Apples|3,212 Oranges|1,253 Bananas|4,394 Seattle Apples|598 Oranges|3,409 Bananas|3,120 Grapes|2,341
How would I be able to add a column, and assign the city value to that column for each of those respective rows?
I have tried transposing operations in powerquery, but have not yet figured out if that's possible, or the best method.
Suppose you start from this:
Then you can add a custom column:
Then use fill-down on the new column:
Which will give you this:
Finally you can filter out the rows with null sales:
To get: