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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
codyraptor
Resolver I
Resolver I

Composite/Live connect slower than Import..same measure

I have an import model published to the PBI cloud.  I'm connecting another local model to it via DQ/Live connect and I've noticed a large change in performance.  In the screenshot below...you can see the same exact measure being pulled in DAX studio for comparison.  The screen on the right is the local import model.  The left is the same measure.  Is this expected or am I missing a way to optimize?  I also noticed the FE and SE flipped as far as which was doing all of the work.

codyraptor_0-1684343848421.png

 

3 REPLIES 3
lbendlin
Super User
Super User

I'm connecting another local model to it via DQ/Live connect

There be dragons.  Check the cardinality of the join column.  Look at the query that is produced by the join. You may find that your query text (just the text, not the data) balloons to hundreds of megabytes.

@lbendlin In this measure....I'm just doing a distinct count against the fact table and filtering 2 DIM tables.  100% of my joins between the DIM and Fact tables are 1 to many.  Both DIM tables are ~7 rows...fact table is about 10M.  I'm also using a true calendar table for any date references.  It runs super fast and efficient in the main model...but just loses efficiency in the live connection for some reason.   Can you explain 'query text - just the text'?  Are you referencing the Dax code?  If so...it's just Calculate(DistinctCount(fact_ID),not fact_type in {'X','XA'})

That's what you would think.  In fact the query can contain a full enumeration of all your fact values for the join column. 10M values can result in a looooong query.

 

Start reading from here Use composite models in Power BI Desktop - Power BI | Microsoft Learn  but also check the other blogs on that topic.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.