cancel
Showing results for 
Search instead for 
Did you mean: 
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
Winner of T-Shirt Design

Power BI T-Shirt Design Challenge 2023

Find out who won the T-Shirt Design Challenge and the top 3 finalists.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.

Top Kudoed Authors