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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors