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
Anonymous
Not applicable

I am trying to map 2 queries in power bi desktop

Hi, 

 

I have 2 queries - Query1 and Query2. I need to use the column from query2 as an input to query1. Can we do it in Power BI? If so, can someone please let me know how?

1 ACCEPTED SOLUTION
v-yuta-msft
Community Support
Community Support

@Anonymous ,

 

Yes, you can refer to another query in advanced editor, please check out demo below:

 

Query1:

let
    Source = Table.FromRecords({[Key = 1, Value = 2]}),
    Result = Table.Combine({Source, 
                            Table.RenameColumns(
                            Table.SelectColumns(Query2, {"Key", "Value"}), 
                            {{"Key", "Key From Query2"}, {"Value", "Value From Query2"}})})
in
    Result

Query2:

let
    Source = Table.FromRecords({[Key = 2, Value = 3]})
in
    Source

Capture.PNG 

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yuta-msft
Community Support
Community Support

@Anonymous ,

 

Yes, you can refer to another query in advanced editor, please check out demo below:

 

Query1:

let
    Source = Table.FromRecords({[Key = 1, Value = 2]}),
    Result = Table.Combine({Source, 
                            Table.RenameColumns(
                            Table.SelectColumns(Query2, {"Key", "Value"}), 
                            {{"Key", "Key From Query2"}, {"Value", "Value From Query2"}})})
in
    Result

Query2:

let
    Source = Table.FromRecords({[Key = 2, Value = 3]})
in
    Source

Capture.PNG 

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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