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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
Super User
Super User

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
Super User
Super User

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors