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