Power Query: Riveting Results Part 4
5 January 2022
Welcome to our Power Query blog. This week, I start to create a parameter from a cell in Excel.
My salespeople are taking a really long break. This week, I continue looking at the exam results I created in Power Query: Riveting Results Part 1:
![](http://sumproduct-4634.kxcdn.com/img/containers/main/blog-pictures/2022/power-query/266/image1.png/e774d10cbbb9450fc45efbe51abdf434.jpg)
I will be grading the results, and I will be using this example to explore parameters. Last week, I added parameters to the query Exam Results.
![](http://sumproduct-4634.kxcdn.com/img/containers/main/blog-pictures/2022/power-query/266/image2.png/f32e5a15e2cf9c3e4d2d058458ce054d.jpg)
Whilst I can change these parameters in Power Query, I’d now like to have parameters that I can change from Excel. On a new Excel Sheet, I have some data for the thresholds:
![](http://sumproduct-4634.kxcdn.com/img/containers/main/blog-pictures/2022/power-query/266/image3.png/f1140ff857fc3b6f5f97a6a24f4a6fc7.jpg)
I start by defining a Name for the first threshold. I can do this by selecting the cell and right-clicking:
![](http://sumproduct-4634.kxcdn.com/img/containers/main/blog-pictures/2022/power-query/266/image4.png/72aa864d2854c6fefb1083fba0ab5792.jpg)
I define the Name to be ‘Grade_9’:
![](http://sumproduct-4634.kxcdn.com/img/containers/main/blog-pictures/2022/power-query/266/image5.png/36776d1da4d05b45bb5a5d09375f407c.jpg)
I can now see this in Power Query. In the Power Query Editor, I create a new Blank Query. I can do this by right-clicking in the Queries pane (this is one of several methods to create a Blank Query):
![](http://sumproduct-4634.kxcdn.com/img/containers/main/blog-pictures/2022/power-query/266/image6.png/23912d3b1671861e02bebcd5183f1607.jpg)
In my Blank Query, I enter the following M code:
= Excel.CurrentWorkbook()
This will show me what is in the current Excel Workbook:
![](http://sumproduct-4634.kxcdn.com/img/containers/main/blog-pictures/2022/power-query/266/image7.png/6f49c288a0d88a66b427eaf4ece923d6.jpg)
There is the Grade_9 I created. The value will be in the ‘Table’ next to it.
Next time, I will extract this data into a parameter, and look at why this is different from a parameter created from the ‘Manage Parameters’ dialog.
Come back next time for more ways to use Power Query!