Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
I have a table that has Employee names and their work area.
I would like to only keep the rows with the employees in certain work areas.
I know I can filter but I will be updating the data frequently and their may be times when no one is a work area that prevousily had people in it or people are now in a work area that prevousily had no one in it. Due to this I don't think just filtering the rows from the drop down is a good option.
How can I write this into my power query?
Solved! Go to Solution.
You can hard code in all the areas with this approach. Add a custom column with a formula like this
= if List.Contains({"Area1", "Area2", "Area3"}, [AreaColumnName]) then "Y" else "N"
and then just filter out the "N" rows on that new column. You can then modify the list of areas over time if changes occur.
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
You can hard code in all the areas with this approach. Add a custom column with a formula like this
= if List.Contains({"Area1", "Area2", "Area3"}, [AreaColumnName]) then "Y" else "N"
and then just filter out the "N" rows on that new column. You can then modify the list of areas over time if changes occur.
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 4 | |
| 4 | |
| 2 | |
| 2 | |
| 1 |
| User | Count |
|---|---|
| 11 | |
| 11 | |
| 5 | |
| 4 | |
| 4 |