There are lots articles out there that compare Import Mode vs.Direct Query, but people rarely talk about if there are any differences between Direct Query and Live Connection. “Wait. Aren’t they the same thing?” Well, not quite.
The first big difference between Direct Query and Live Connection is the type of data source used for the connection. The former uses a database connection (typically SQL Server), whilst the latter requires an Analysis Services OLAP Cube.
This blog series won’t explain what Direct Query and Live Connection can do (found here and here), but will instead highlight the other subtle differences between the two connections.
There aren’t any features I can find that are available in Live Connection and not Direct Query. However, there are a few the other way around.
I will first show you a Power BI Direct Query screen, focusing on the 2 of the 4 differences (highlighted green):
o Quick Measures
This feature was first released in April 2017 and is available in Import Mode and Direct Query. It enables a non-technical Business Analyst to create relatively complex DAX aggregations, with the use of a nice Wizard. To access Quick Measures, right click on a measure or attribute and select Quick Measures. Let’s try the same thing in Live Connection mode.
You’ll notice that Quick Measures is missing from the list of options.
I find it bizarre that Live Connection doesn’t support Quick Measures, especially when using a Tabular Cube as the connection. The Power BI DAX language and engine are the same as Tabular, so you would think the two are compatible!
Please vote for this feature to be added into Live Connection - http://bit.ly/2umsiJy.
There are two tabs displayed on the left-hand pane in Direct Query mode.
If you click the highlighted tab, it opens a Relationships page – where you can begin to join datasets (from the database) together. I created a manual relationship that joined DimEmployee and DimDate together – as shown below. No relationships are created in the underlying SQL Server database, but instead stored within the Power BI model.
In Live connection, the left-hand pane looks bare:
There is no option to create any form of Relationship against the Live Connection Tabular Cube. This kind of makes sense because a BI Developer would be the person responsible for creating relationships within an OLAP Cube. I would argue that if you want the ability to mashup data or create your own relationships, you shouldn’t be connecting to a Cube in the first place.
Check out Part 2 of my blog series - available here. The focus of this article are the Add Hierarchy and Change to Import Mode features.
Part 3 will conclude the Trilogy, where I go off-piste slightly and focus on the Data Models in Direct Query and Live Connection.
Other than the Power BI Blog, there are some other great pages out there too:
o Power BI Blog - http://bit.ly/2rkLGoq
o Import Mode vs. Direct Query - http://bit.ly/2t4ragx
o Direct Query in Power BI - http://bit.ly/2nUoLOG
o Live Connection in Power BI – http://bit.ly/2tfJr5L
If you would have any questions or thoughts, please leave a comment below. My Twitter details are also provided.