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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Phil_Seamark
Microsoft Employee
Microsoft Employee

Timeout when querying Analysis Services

In Power BI Desktop, when trying to run or refresh an MDX query against a local SSAS server, Power BI starts trying to kill the query after 60 seconds.  I know the query works fine from SQL Server Management Studio and typically takes around 90 seconds which I am ok with for this particular query.

 

Is there anywhere I can set or override timeout when using the AnalysisServices.Database function?

 

Cheers,

 

Phil

 

 


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

2 REPLIES 2
v-sihou-msft
Microsoft Employee
Microsoft Employee

@Phil_Seamark

 

To add timeout property in connection string and use it in Power Query, you may use OleDb.Query function. Please refer to blog: Running Your Own MDX And DAX Queries In Power BI Desktop.

 

Another option is set the SSAS server property ExternalCommandTimeout and ExternalConnectionTimeout to 0.

 

Regards,

Simon Hou

Cheer Simon,

 

I will have a look into this.  The other option I guess is ODBC which may also have some timeout properties I can set. 

 

It's definitely coming from the client as other clients can run these (and other longer queries) without being killed.


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

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 Kudoed Authors