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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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