Our sales manager wanted a Category cell on the order tracker where people pick a value instead of typing “laptop” in one row and “LAPTOP” in the next. A Power Query drop down list fixes that: the choices come straight from the sales data, so nobody maintains them by hand.
In this tutorial, we’ll load a 60-order sales file into Excel’s Power Query Editor, turn its Category column into a distinct, sorted list, and point Data Validation at that list to build a power query drop down list that stays in step with the data.
Then we’ll cover the two Power BI versions people search for: a Power Query parameter with a list of values for report authors, and a dropdown slicer for the people who read the report.
Here’s what we’re building. Cell B3 on the order sheet opens a dropdown with Accessories, Laptops, Monitors and Software, sorted A to Z, and every one of those values comes from a query:

Before You Start
You need a desktop version of Excel with the Get & Transform Data group on the Data tab (Power Query’s home in Excel), plus Power BI Desktop for Steps 7 and 8. No add-ins or macros needed. More Power BI walkthroughs are on the Power BI tutorials hub.
The demo file is C:\SPGuidesDemo\PowerBI\SPGuides_Sales_2026.csv: 60 orders from 2026 across US cities, with 11 columns. Only Category matters for the dropdown, but here’s the full shape so the screenshots make sense:
| Column | Type | Notes |
|---|---|---|
| OrderID | Text | SO-1010, SO-1014 and so on |
| OrderDate | Date | Stored as MM/DD/YYYY text in the file, January to September 2026 |
| Region | Text | East, West, South or Central |
| City / State / ZIP | Text | US cities such as Boston, Dallas and Seattle; some ZIP codes start with 0 |
| Category | Text | Accessories (19 rows), Laptops (16), Software (16), Monitors (9): the dropdown source |
| Product | Text | Surface Laptop 7, Wireless Mouse, Visio Plan 2 … |
| SalesRep | Text | Megan Bowen, Alex Wilber, Adele Vance, Lee Gu, Nestor Wilke |
| Quantity / Sales | Number | Units and order value in USD |
A few sample rows from the file:
| OrderID | OrderDate | Region | City | Category | Product | SalesRep | Sales |
|---|---|---|---|---|---|---|---|
| SO-1020 | 01/12/2026 | West | Phoenix | Software | Visio Plan 2 | Megan Bowen | $1,440 |
| SO-1027 | 01/18/2026 | East | Hartford | Laptops | ThinkPad X1 | Megan Bowen | $8,694 |
| SO-1014 | 01/21/2026 | East | Portland | Accessories | Wireless Mouse | Alex Wilber | $49 |
| SO-1010 | 01/30/2026 | South | Dallas | Laptops | Surface Laptop 7 | Nestor Wilke | $3,897 |
Four categories spread over 60 rows is exactly the problem: the column is full of repeats, and a dropdown needs each value once.
Step 1: Load the Sales Data into Power Query
Goal: get the CSV into the Power Query Editor as a query named Sales, which every later step builds on.
- Open a blank workbook and go to Data > From Text/CSV.
- Pick
SPGuides_Sales_2026.csvand select Import. - In the preview window, select Transform Data instead of Load, so the Power Query Editor opens.
- In Query Settings, change the query name under Properties to Sales.
You’ll notice Hartford’s ZIP shows as 6103 in the preview. Type detection treated ZIP as a number and dropped the leading zero. It doesn’t affect our Category list, but if you need ZIP codes, see how to keep ZIP codes that start with 0 before you load.
Checkpoint: The Queries pane lists one query, Sales, with 60 rows and 11 columns.
Step 2: Create a Reference Query for the List
Goal: build the list in a second query that starts from Sales, so the original data stays untouched.
- In the Queries pane, select Sales.
- On the Home tab, open Manage and select Reference.
- A new query named Sales (2) appears. Rename it CategoryList in Query Settings.

Why Reference and not Duplicate? A reference query’s only starting step points at the output of Sales. Fix a data type or add a filter in Sales later, and CategoryList picks it up. Duplicate copies every step into an independent query, so you’d be fixing things twice.
= Sales
Checkpoint: CategoryList shows one applied step, Source, and the formula bar reads = Sales.
Step 3: Keep the Category Column and Remove Duplicates
Goal: shrink CategoryList from 60 rows to one row per category.
- Select the Category column header.
- Go to Home > Remove Columns > Remove Other Columns. You now have 60 rows and one column.
- With Category still selected, go to Home > Remove Rows > Remove Duplicates.

The tooltip on that command says it removes rows containing duplicated values in the currently selected columns. Power Query writes these two steps for you:
= Table.SelectColumns(Source,{"Category"})
= Table.Distinct(#"Removed Other Columns")
Before you trust the result, know that Power Query compares text case-sensitively. “laptops” and “Laptops” would both survive. If your column is messy, add Transform > Format > Trim and Capitalize Each Word before this step. The same logic is behind how you count distinct values in Power Query.

For the other row-level cleanups, such as removing blanks or top rows, see how to remove rows in Power Query Editor.
Checkpoint: The Removed Duplicates step leaves 4 rows, one per category.
Step 4: Sort the List A to Z
Goal: put the categories in alphabetical order. The dropdown shows items in the same order as its source table, so sorting here is what makes the list easy to scan.
- Open the filter arrow on the Category header.
- Select Sort Ascending (A to Z).
= Table.Sort(#"Removed Duplicates",{{"Category", Order.Ascending}})

If you open Home > Advanced Editor, the whole query is just four steps. You can paste this into a blank query in your own workbook and change the query and column names:
let
Source = Sales,
#"Removed Other Columns" = Table.SelectColumns(Source,{"Category"}),
#"Removed Duplicates" = Table.Distinct(#"Removed Other Columns"),
#"Sorted Rows" = Table.Sort(#"Removed Duplicates",{{"Category", Order.Ascending}})
in
#"Sorted Rows"
Checkpoint: Applied Steps read Source, Removed Other Columns, Removed Duplicates, Sorted Rows, and the values are Accessories, Laptops, Monitors, Software.
Step 5: Load Both Queries to Excel
Goal: put CategoryList on a worksheet as an Excel table, because Data Validation reads from cells, not from queries.
- On the Home tab of the Power Query Editor, select Close & Load.
- Excel adds two sheets: Sales (60 rows) and CategoryList, which holds a table also named CategoryList with 4 rows.
- Open Data > Queries & Connections if the pane isn’t showing.
Excel names the loaded table after the query, which is why we renamed it in Step 2. That table name is what the dropdown points to next. It’s the same idea as creating a table with Power Query, just with a single column.
Checkpoint: The Queries & Connections pane shows “Sales 60 rows loaded” and “CategoryList 4 rows loaded”.
Step 6: Add the Data Validation Drop-Down
Goal: turn cells on the order sheet into dropdowns that read the CategoryList table. On Sheet1, I typed Order ID in A1, Category in B1, and the order numbers SO-1061, SO-1062 and SO-1063 in A2:A4.
- Select B2:B4.
- Go to Data > Data Validation (keyboard: Alt, A, V, V).
- On the Settings tab, set Allow to List.
- Leave Ignore blank and In-cell dropdown checked.
- In Source, enter the INDIRECT formula below and select OK.
=INDIRECT("CategoryList[Category]")

Why INDIRECT? When I typed the table reference directly, Excel refused it. INDIRECT takes the same structured reference as text, and Excel accepts it in the Source box. Because it still points at the table column, the dropdown follows the table when the query adds or removes rows.
Checkpoint: Select B3 and click its arrow: Accessories, Laptops, Monitors and Software appear in that order.
Step 7: Build a Dropdown Parameter in Power BI Desktop
Power BI report pages don’t have cells, so “drop down list in Power BI” means one of two things. Report authors can give a Power Query parameter a list of values, and report viewers get a slicer. Start with the parameter. I loaded the same CSV in Power BI Desktop.
- Select Transform data on the Home ribbon to open the Power Query Editor.
- Go to Home > Manage Parameters > New Parameter.
- Enter Name: SelectedRegion, keep Required checked, and set Type to Text.
- Set Suggested Values to List of values and type Central, East, South and West into the grid, one per row.
- Leave Default Value blank, pick East in the Current Value dropdown, and select OK.

Microsoft’s docs point out that the list is only a set of suggestions: you can still type another value. The third option, Query, takes its suggestions from a list query, which is handy when the values should come from data, like our CategoryList.
To use the parameter in a step, first check View > Always allow (Parameters group). Then open the Region filter arrow, choose Text Filters > Equals, click the small type button next to the value box and pick Parameter. SelectedRegion appears in the value box:

Select OK and Power Query writes a filter step that reads the parameter instead of a fixed word:
= Table.SelectRows(#"Added Custom5", each [Region] = SelectedRegion)
In my file the step left 32 of the 60 orders, all of them East. Change the parameter’s Current Value to West and the same step returns the West orders instead.

If viewers need to move a number instead, a what-if parameter in Power BI is the better fit.
Checkpoint: The Queries pane shows a new item, SelectedRegion (East).
Step 8: Give Report Viewers a Dropdown Slicer
Goal: give the people reading the report a dropdown they can use without opening Power Query. Parameters live in Power Query, so in Power BI Desktop authors change them through Transform data > Edit parameters. Viewers use slicers.
- With nothing selected on the canvas, select the Slicer icon in the Visualizations pane.
- In the Data pane, select the Category field (or Region).
- In the Format pane, expand Visual > Slicer settings > Options.
- Set Style to Dropdown.
Don’t skip step 4. When I added the Category slicer, it came in as a checkbox list, and the Style box read Vertical list. The other two choices are Tile and Dropdown:

After the switch, the slicer shrinks to one box that reads All. Open it and you get the categories:

Here’s the nice part: the slicer showed each category once, sorted A to Z, so no Remove Duplicates step is needed. Formatting, search and default values are covered in how to add a dropdown slicer in Power BI.
To let people pick more than one category, Ctrl+click works by default; the settings are in Power BI slicer multiple selection.
Test the Drop-Downs
In Excel, I picked Monitors in B2, then opened B3’s arrow. The list showed exactly four values, sorted, which is the result in the first screenshot. The workbook is saved as C:\SPGuidesDemo\PowerBI\SPGuides Category Dropdown.xlsx.
Then I tested what happens when the data changes. I added one order with a new category, Tablets, to the CSV and selected Data > Refresh All. Queries & Connections went from 60 to 61 rows for Sales and from 4 to 5 for CategoryList, and the table grew by one row.
I didn’t touch the Data Validation rule. B3’s dropdown simply showed Tablets at the end, because INDIRECT points at the table column, not at a fixed range:

I removed that test order afterwards, and the next refresh brought the list back to four.
In Power BI Desktop, the parameter’s Current Value dropdown offers Central, East, South and West. With East picked, the query shows as SelectedRegion (East):

Make It Production-Ready
- Refresh on open: click any cell in the CategoryList table, select Data > Properties, then the query icon next to the name to open Query Properties. On the Usage tab, check Refresh data when opening the file (screenshot below), so new categories show up without anyone remembering Refresh All.
- Clean before you dedupe: Trim and Capitalize Each Word ahead of Remove Duplicates, since Power Query is case-sensitive.
- Drop blanks: use Remove Empty on the Category filter arrow so the dropdown never offers an empty item.
- Tell users what’s allowed: the Data Validation Input Message and Error Alert tabs let you add a hint and block values that aren’t in the list.
- Power BI reports with several pages: sync slicers across report pages so one dropdown filters them all.

Troubleshooting
“There’s a problem with this formula.” This is what I got when Source was the table reference typed directly:
=CategoryList[Category]

Use the INDIRECT version from Step 6. The other fix is a named range: Formulas > Name Manager > New, name it CategoryNames, set Refers to = =CategoryList[Category], then use =CategoryNames as the Source.
- The same category shows twice: the values differ in case or have trailing spaces. Add Trim and Capitalize Each Word before Remove Duplicates.
- A new category is missing: the query hasn’t refreshed. Run Data > Refresh All, or turn on refresh when opening the file.
- ZIP codes lost their leading 0: type detection made ZIP a number (6103 instead of 06103). Fix the type in the original Changed Type step.
- Viewers can’t change the parameter: that’s by design; parameters are for authors. Add a slicer set to Dropdown.
- The slicer shows (Blank): some rows have no value in that column. Here’s how to remove blank from a Power BI slicer.
Where to Take It Next
- Show each category’s share: once people pick a category, a measure like calculating the percentage of rows in Power BI tells them how much of the 60 orders it covers.
- Make measures react to the dropdown: DAX FILTER with SELECTEDVALUE turns the slicer choice into a dynamic filter.
- Add a month dropdown: build the list from month names, using month names from month numbers so January sorts before February.
If you’d like a guided path through Power Query, data modeling and report design, our Power BI training course walks through it with real projects.
Still shaping data in Power Query? These step-by-step guides pair well with this build:
Frequently Asked Questions
Can Power Query create a drop down list in Excel?
Not by itself. Power Query builds the list: one column, duplicates removed, sorted. You load that list to a table, then Excel’s Data Validation (Allow: List) turns cells into dropdowns that read it, for example with =INDIRECT(“CategoryList[Category]”).
How do I create a drop down list in Power BI?
For report viewers, add a slicer and set Format > Visual > Slicer settings > Options > Style to Dropdown. For report authors, create a Power Query parameter with Suggested Values set to List of values; Microsoft explains the options in its Power Query parameters documentation.
Does Power Query have data validation?
Power Query has no cell-level validation rule. You clean and restrict values in the query (filters, Remove Duplicates, data types), then apply Excel’s Data Validation to the worksheet cells, using the query’s output table as the list source.
How do I add a list as a column in Power Query?
Convert the list to a one-column table with Table.FromList, for example Table.FromList(CategoryNames, Splitter.SplitByNothing(), {"Category"}). Splitter.SplitByNothing() keeps each item whole, and the last argument names the column.
Why doesn’t my Excel dropdown show the new values from Power Query?
The query output only changes when it refreshes. Select Data > Refresh All, or set the query to refresh when the file opens. Use a source that points at the table column, such as INDIRECT or a named range, so the list follows the table’s size.

Hey! I’m Bijay Kumar, founder of SPGuides.com and a Microsoft Business Applications MVP (Power Automate, Power Apps). I launched this site in 2020 because I truly enjoy working with SharePoint, Power Platform, and SharePoint Framework (SPFx), and wanted to share that passion through step-by-step tutorials, guides, and training videos. My mission is to help you learn these technologies so you can utilize SharePoint, enhance productivity, and potentially build business solutions along the way.