Power Query: Steps to Take – Part 1
14 September 2022
Welcome to our Power Query blog. This week, I am going to look at a worked example.
The tent business has a new administrative assistant, who used to work in the United States. George has provided some information, but it’s not yet in a format I can use:
![](http://sumproduct-4634.kxcdn.com/img/containers/main/./image1-1662616406.png/c5f70e541a6d6d94619988dfd1ef1277.jpg)
I start in the usual way, by choosing ‘From Table/Range’ in the ‘Get & Transform’ section of the Data tab. This gives me my initial query:
![](http://sumproduct-4634.kxcdn.com/img/containers/main/./image2-1662616415.png/ce77107e734550084e8b5df2ab0ccfd8.jpg)
There are of course many ways I can transform this data, but I will begin by establishing a link so that I can keep track of which rows relate to each other. I commence by right-clicking on Column1, and choosing to ‘Replace Values’:
![](http://sumproduct-4634.kxcdn.com/img/containers/main/./image3-1662616430.png/4160ebbf34f7cbc074f0dff0f49506fc.jpg)
The phrase ‘salespeople available’ is no use to me, so I replace this value with null.
![](http://sumproduct-4634.kxcdn.com/img/containers/main/./image4-1662616443.png/b8ee94c0fb50de98008062033f92d90e.jpg)
I can now choose ‘Fill’ and then ‘Down’ from the right-click menu for Column1.
![](http://sumproduct-4634.kxcdn.com/img/containers/main/./image5-1662616455.png/b37c0551e6c2e3c039bf0ae9975edda1.jpg)
My rows are now linked by month; I rename the column Month for clarity.
![](http://sumproduct-4634.kxcdn.com/img/containers/main/./image6-1662616510.png/682362cf52a353d584f4c8b9847ef287.jpg)
I rename this query Base. I then make a Reference copy of Base.
![](http://sumproduct-4634.kxcdn.com/img/containers/main/./image7-1662616523.png/2c8d72a7c526e1f4eac191dbfe01762e.jpg)
I call this query Quantities. I only want the rows pertaining to quantities. I would like to use text filters, but to do this I need to change the data type of week 1 to Text:
![](http://sumproduct-4634.kxcdn.com/img/containers/main/./image8-1662616535.png/99c760b5be9deb733e5a507293deab4e.jpg)
If I click on the filter arrow next to the title, I can use the ‘Does Not Contain’ filter:
![](http://sumproduct-4634.kxcdn.com/img/containers/main/./image9-1662616546.png/97f290309442c3e0c52eeb9c2553f03f.jpg)
I select those rows that don’t contain a forward slash (/).
![](http://sumproduct-4634.kxcdn.com/img/containers/main/./image10-1662616559.png/f5d3744b5f0d0df5cf769666b8f61387.jpg)
This gives me the rows pertaining to quantity only.
![](http://sumproduct-4634.kxcdn.com/img/containers/main/./image11-1662616568.png/f36c47c999a9c59097b8884834519e71.jpg)
Next time, I will create another query for the date information.
Come back next time for more ways to use Power Query!