Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
mkani
New Member

Borough filter

Hi.

 

I have brought in data from land registry which lists every borough in the UK. I only require the 33 London Boroughs. At the moment I have the data within excel and it filters it out via VBA. I know that VBA is not an option in Power Bi and wondered if there is a script/code which can be ran using M or DAX to filter and keep the 33 boroughs.

 

Many thanks in advance

 

Mehmet

1 ACCEPTED SOLUTION
Nathaniel_C
Community Champion
Community Champion

Hi @mkani ,

In Power Query it is amazingly simple.  Go to the top of the column. Click on the arrow key. Using Filter select the values you want. When you download to Power BI, you will only have those values in your table. As this becomes a step, when you refresh Power Query will continue to do this step.
Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

3 REPLIES 3
Nathaniel_C
Community Champion
Community Champion

Hi @mkani ,

In Power Query it is amazingly simple.  Go to the top of the column. Click on the arrow key. Using Filter select the values you want. When you download to Power BI, you will only have those values in your table. As this becomes a step, when you refresh Power Query will continue to do this step.
Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





@Nathaniel_C wrote:

Hi @mkani ,

In Power Query it is amazingly simple.  Go to the top of the column. Click on the arrow key. Using Filter select the values you want. When you download to Power BI, you will only have those values in your table. As this becomes a step, when you refresh Power Query will continue to do this step.
Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel


Many thanks for your help and prompt response.

You are very welcomwe!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors