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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
Anonymous
Not applicable

Fetch Data from Matched column from Different table without importing complete Table -MySQL

Hi, 

Please help me with this

 

I am importing data from two different table-based on Mysql query, Table-A contains value  Eg: order_ids (Query output)

power_query:  select order_ids from order_table

                       where order_created_on > current_date()

 

Output:  4001342,

              4001331,

              4000123

 

Now I want to import data from values corresponding to order_ids  which already imported from Table A

 

**how to use below  query in power_bi: (Number vary based on the previous query while running)

 

select * from shipments

where order_ids in ( 4001342,4001331,4000123)

 

 

1 REPLY 1
Cristian_Angyal
Most Valuable Professional
Most Valuable Professional

Hello @Anonymous ,

 

Best option (and recommended) is to push this type of work as close as possible to the datasource (database here) (for example you could create a view with the same logic and then connect to that view.)

 

If this is not possible due to various reasons I would make a query to get the exact output needed for the WHERE CLAUSE (4001342,4001331,4000123) and then use it "as is" in the second query. Caution: you need to be careful with the data privacy settings.

 

 

If you liked my solution please give it a thumbs up 👍

If I did answer your question please mark my post as a solution .

Thank you !

 

 

Cristian

 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors
Top Kudoed Authors