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

View all the Fabric Data Days sessions on demand. View schedule

Reply
pmurz
Advocate III
Advocate III

How to manage the order of query execution?

Is there a way to force Power BI to execute my queries in a known or preferred order?   
I have one model with well structured queries which sequentially build out a data model from a large JSON file of activities.

If I manually step through the queries in the logical order, the total time is a couple of minutes.   If I try refresh from the Desktop, it automatically tries queries out of that order and takes an exceptionally long time and often gives up. 

Any advice is welcomed.  

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

@pmurz First, I would make sure that Parallel loading of queries is disabled. That is under the Report settings, Data load in File | Options and settings | Options.

 

Second, take a look if you can create a controller query for some of your queries. In other words, disable load on your base queries and then create a query that runs those other queries sequentially within it to create a table.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

4 REPLIES 4
pmurz
Advocate III
Advocate III

@Greg_Deckler thank you for the advice.  Turning off the Parallel Loading did the trick.  It takes longer to execute, but never fails. 

Greg_Deckler
Community Champion
Community Champion

@pmurz First, I would make sure that Parallel loading of queries is disabled. That is under the Report settings, Data load in File | Options and settings | Options.

 

Second, take a look if you can create a controller query for some of your queries. In other words, disable load on your base queries and then create a query that runs those other queries sequentially within it to create a table.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Hi  I am also interested in your query controller could you please elaborate ? thanks

Anonymous
Not applicable

Thanks for Greg,

 

Please could you elabrate on how to create a controller query for other querirs in sequence in Power Query and Power BI?  

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.