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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
Anonymous
Not applicable

Low performance on relationship between 2 fact & 2 dim tables (non star schema)

Hi all,

 

We have the following problem. This is a very small part of our model. Unfortunately in our real scenario we could not impelemnt the star schema in every area, due to circular dependencies between tables. Thus, we came up with the following schema which allows us to create all the necessary reports.

dorpap01_0-1647528155404.png

The case is that when I insert columns/measures from 2-3 tables on a visual in Power BI, the performance is ok (typically responds within a few minutes). When I insert columns/ measures/ filters from all the above tables the performance is about 30-40 mintues slower, which is unacceptable from our client. The profiler shows that the query creates multiple (AROUND 100) small temp tables without any obvious reason.

 

Does anyone knows what we may do or why this is happening?

 

Thanks a lot,

TP

3 REPLIES 3
Anonymous
Not applicable

It's true what you've mentioned. However, it is the only way to apply filtering from all the DIM tables at the same time.

So, you believe there is no other way to tackle the performance issue?

"it is the only way to apply filtering from all the DIM tables at the same time"

 

I doubt this is true. It may be the easiest way but if you're having performance issues, then you may need to re-evaluate.

AlexisOlson
Super User
Super User

It looks like you have bidirectional relationships between multiple fact tables. This is often very expensive computationally and should generally be avoided.

 

Recommended reading:

https://www.sqlbi.com/articles/different-options-to-model-many-to-many-relationships-in-power-bi-and...

https://www.sqlbi.com/articles/bidirectional-relationships-and-ambiguity-in-dax/

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors
Top Kudoed Authors