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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
rzhuo6763
Frequent Visitor

Can I create two different tables use one query?

I have two custom functions that generate two different tables with different columns. But these two functions use the same parameters. Any chance I can use the parameters once and create the two tables at the same time in one wrapped query?

 

Thanks

1 REPLY 1
amitchandak
Super User
Super User

@rzhuo6763 , In the power query, you can two tables inside the code, but you will be able to return only one.

 

In this example I merged the code

Merge Queries, Why not Merge the code: https://youtu.be/YOFs39RCPfQ

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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