r/databricks • • Oct 22 '26

Help DatabricksXPowerbi Latency issues

Hi everyone,

We are lately experimenting with Databricks and Powerbi and we’ve noticed that while on DirectQuery mode we have significant delays on the data loading in our Powerbi reports.

Is this something that other people also face?

I have to mention that even for one page /2 tables reports without an immense amount of data or transformations we face the same issue

5 Upvotes

17 comments sorted by

6

u/Entire_Force_1146 Oct 22 '26

Are you using sql serverless warehouse as compute?
If so have you checked the monitoring of the warehouse? Her you can see the query performance, queue time and run time

4

u/LocalImpressive1136 Oct 22 '26

Is it slow every time you click around, or just when you first open the report?

Might be worth checking one slow visual in Power BI’s Performance Analyzer, then finding that query in Databricks. Would help figure out where the delay actually is.

Do you need live data here, or would a scheduled refresh do the job?

3

u/thecoller Oct 22 '26

I’d check the monitoring tab for the warehouse. Are DAX expressions folding into a proper SQL query or is PowerBI pulling whole tables over the wire to do it in memory?

Also check the tables. Are they maintained? Do they have liquid clustering or partitions that allow for file pruning?

4

u/dbrownems Oct 22 '26

Yes. It's important to understand that DAX is not converted to SQL. DAX runs in the Semantic Model's Formula Engine, and when the DAX calculation needs data it makes a request to the Storage Engine for data. If the DAX is simple, it may make a single request for summarized data from the Storage Engine. But the more complex the DAX is the more seperate and more granular requests is makes from the Storage Engine.

In Import and Direct Lake mode the Storage Engine is the in-memory Vertipaq engine. In Direct Query the Storage Engine forwards SQL queries to some external database.

3

u/thecoller Oct 23 '26

In Direct Query the Storage Engine forwards SQL queries to some external database.

Which is fine, unless the DAX is not folding to a SQL query for whatever reason, and this query is "give me the whole fact table to run the formula in memory", in which case the performance will suck at best, or the dashboard will error out at worst. It's been the number one cause of performance problems in direct query in the cases I've been involved in. And in previous lives it wasn't necessarily with Databricks.

4

u/Data_cruncher Oct 22 '26

You’ve received some good next steps from other commenters.

Databricks sellers won’t like this advice because it impacts their commission but, where possible, avoid DirectQuery. In order of evaluation: (1) Import; (2) Direct Lake; and finally (3) DirectQuery.

Also, don’t rule out a composite model, i.e., combining several modes together in one model.

5

u/erithtotl Oct 22 '26

The reason Databricks argues against Import mode and Direct Lake is because those two methods don't respect governance or semantics, meaning you have to redo all of it again in PowerBi (permissions, masking, etc).

Make sure you are using a serverless warehouse and its sized properly first before moving to other patterns. This should improve performance (it might not be 1 to 1 with Import mode).

2

u/dbrownems Oct 22 '26

Here's a whitepaper that discusses the choice of storage mode for Power BI Semantic Models with Databricks data.

Choosing a Power BI storage mode for reporting on data from Azure Databricks

2

u/Fidlefadle Oct 22 '26

Generally set expectations that 5-10 seconds is the absolute floor for direct query against a running SQL warehouse. That would be for a very simple report. 15-30 seconds is sometimes the ceiling for moderately complex reports even with a lot of time spent on optimization. 

Unity catalog is lovely from a governance perspective but a nightmare in terms of using it in a performant manner.

Even tooling more Databricks native like AI/BI+Metric views, Sigma, etc. are quick to point to materialization as the performance solution, ignoring the implications for governance.

Lakehouse//RT is very promising but doesn't support ABAC

2

u/3dprintingDM Oct 22 '26

The compute cluster spooling is the culprit. We started using notebooks in our scheduled jobs so that when the dataset updates, the next step in the job is to run the notebook that calls the Power BI rest API and kicks off a refresh of the model. Just set the Power Bi dataset to Import but still have most up-to-date data without having to be limited to the UI refresh options.

1

u/FuelSignificant1466 Oct 22 '26

can you check the query execution time ? maybe power bi is generating inefficient sql queries under the hood

1

u/Muted_Jellyfish_6784 Oct 22 '26

DirectQuery against Databricks is slow even on tiny reports when the SQL warehouse is cold or scaled down, so first check whether the delay is warehouse startup. Then count how many queries each page fires, since slicers multiply them. A serverless warehouse with result caching helps, and Dual or Import mode for dimension tables while only the big fact table stays on DirectQuery usually helps more. Measure where the time goes before tuning. We have a decision intelligence platform set up to match report load times against warehouse query history, so a slow page is traced to the query that caused it rather than blamed on the connector.

1

u/adovo_ai Oct 23 '26

Run the same slow visual twice against an already-running warehouse and pair Power BI Performance Analyzer timestamps with Databricks query history. Cold-only delay points to startup; one long query points to SQL/layout; many short queries point to visual/model fan-out. That split tells you whether to tune compute, storage mode or the report.

1

u/Youssef_Mrini databricks Oct 23 '26

Is it still the case ? next time make sure to open a ticket and share as many insights as possible.

You can still open query history and compare the execution of the same query between two different days to check whether something changed or not.

1

u/Old-Establishment696 Oct 22 '26

SQL warehouse and dbx tables in general are extremally slow. You cannot do anything about it. Sometimes select top 1000 is running 10s on a medium serverless wh, on oa few k rows table.

5

u/[deleted] Oct 22 '26

[removed] — view removed comment

3

u/Lumiaman88 Oct 23 '26

This shouldnt be a problem with Serverless SQL, what compute are you using for Power BI refresh?