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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
kdkimble
Frequent Visitor

Pre-Filtering Data before Importing

I have a table in a SQL Server and I want to filter before bringing into Power BI Desktop.  The reason is that I need uinque information in order to joing to another table.  Currently whey i try to match up via part number it won't let me.  I belive that the part number is duplicated in the table that I am bringing in due to multiple companies.  So I need to filter to just that company before bringing in. 

 

I know that I can fitler after the fact, which I did, but it won't let me join.  

 

So I have 2 choices:

1)Create SQL View of data that is filtered to that company

2)Filter before bringing in, but not sure of the syntax or how to do that.

 

Any help would be greatly appreciated.

1 ACCEPTED SOLUTION
vanessafvg
Super User
Super User

you could also write a sql native query to filter data out (which is the same as a view but you dont have to create a view) which you can paste in the advanced section when you do a get data

 

 





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




View solution in original post

2 REPLIES 2
vanessafvg
Super User
Super User

you could also write a sql native query to filter data out (which is the same as a view but you dont have to create a view) which you can paste in the advanced section when you do a get data

 

 





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Thanks for the suggestion.  Appreciate it.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Kudoed Authors