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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.