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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
pedropimentel
Frequent Visitor

Help with shared dimension between two fact tables

Hi.

I have tried looking for an answer but haven't found one.

 

Let's say I have 2 fact tables: Customers and Sales.

Both of these share a common dimension called SalesPersons.

But, it may not be the same SalesPerson, I mean, a Customer may have a SalesPerson asigned, but a Sale may be made by another SalesPerson.

 

PowerBI won't allow me to use the same SalesPersons dimension for the 2 fact tables.  The only workaround that I found was to make a copy of the SalesPersons table with another name, like CustomersSalesPersons.

 

Is this the rght/only way?

I'd like to know, because SalesPersons has a herarchy of 2 more tables above.

 

Thanks

3 REPLIES 3
v-yulgu-msft
Employee
Employee

Hi @pedropimentel,

 

If it needs at least two columns to uniquely identify the mapping relationship between tables, I think currently the best choice is to combine the two column like CustomersSalesPersons, then, generate relationship based on this combined column.

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Greg_Deckler
Super User
Super User

What error or problem are you seeing connecting the common dimension table to your 2 fact tables? Your work-a-round is fairly common but interested in the issue you are seeing.

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

The relationship on the 2nd fact table remains Inactive, when I try to active it says: "You can't create a direct active relationship between Sales and SalesPersons because an active set of indirect relationships already exists between these tables. To make this relationship active, set the Cross filter direction to 'single', delete or deactivate any of the indirect relationships first."

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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