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
medwards807
Helper I
Helper I

How to share a variable across Query 1 and Query 2

I am looking to find out how to address the following Use Case:

 

Run Query1 against Rest API that returns JSON Value ID (Need to Capture that ID Value and use in Query 2)

 

Run Query 2 against DIfferent Rest API Call, using ID from Query 1 returns a File ID, need to capture that File ID for Query 3

 

Run Query 3 againts Different Rest API call uising File ID from Query 2

 

Thanks

1 REPLY 1
Eric_Zhang
Microsoft Employee
Microsoft Employee

@medwards807

I'm not aware of any way to share values among queries, but I think you can call those 3 APIs in one query one by one. Any reason for not doing that? 

 

 

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.