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
sivarajan21
Post Prodigy
Post Prodigy

How to create a relationship between two tables using a common key

Hi,

 

I have three dimenstion tables as below and merged these 3 tables into one:

sivarajan21_0-1696322578343.png

 

The merged dimension table looks like below:

sivarajan21_1-1696322822272.png

 

similarly I have a data table as below:

sivarajan21_6-1696324993775.png

 

Now I want to merge these above table to communications table as below:

sivarajan21_2-1696323098177.png

I was able to create a relationship between communication and Data with a help of calculated column(Awesome solution from sergei baklan) 

I am confused here how to merge communication with dimension table: The communication table has below columns

sivarajan21_5-1696324796470.png

Now the merged dimension table contains Point id column that corresponds to point id in communication table.

Similarly the client id column in dim merged table corresponds to client id in communication table

This goes similar for contact id column.

 

Now i am confused how to create a relationship between these two tables. 

 

Can you please help me please?

Please let me know if you need further info

 

PFA Communications (3).pbix

Thanks in advance!

@Ahmedx @Greg_Deckler @Ashish_Mathur @amitchandak 

2 REPLIES 2
audreygerred
Super User
Super User

Rather than trying to merge tables together to form one table, I would follow Star Schema and leave your fact and dimension tables separate, but joined with a relationship: http://powerbiwithme.com/2023/07/30/the-star-schema-edition/





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





I want it merged! star schema will not work in my case

Any lead would be appreciated

 

Thanks in advance

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.