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

How to create a Dimension table to connect 2 Fact tables

Hi,

 

I have 2 fact tables and I want to create a Dimension table to connect these 2 fact tables.

How to create the Dimension table?

 

Table A (Fact Table):

Model NumberSales
ABC-123432
CDE-12356
ABC-123255
DEF-1239884

 

Table B (Fact Table):

Model NumberRepair
ABC-12345
GGG-12336
FFF-123106
DEF-123834

 

Output (Dimension Table):

Model Number
ABC-123
CDE-123
GGG-123
FFF-123
DEF-123
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@PBI_newuser , Create a new table like

 

Model Number= distinct(union(all(TableA[Model Number]),all(TableB[Model Number])))

 

if you have a unique value in one of the tables use distinct in place of all

example

Model Number= distinct(union(all(TableA[Model Number]),distinct(TableB[Model Number])))

 

or

Model Number= distinct(union(distinct(TableA[Model Number]),distinct(TableB[Model Number])))

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@PBI_newuser , Create a new table like

 

Model Number= distinct(union(all(TableA[Model Number]),all(TableB[Model Number])))

 

if you have a unique value in one of the tables use distinct in place of all

example

Model Number= distinct(union(all(TableA[Model Number]),distinct(TableB[Model Number])))

 

or

Model Number= distinct(union(distinct(TableA[Model Number]),distinct(TableB[Model Number])))

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @PBI_newuser 

 

If the above posts help, please kindly mark it as a answer to help others find it more quickly. thanks!

If not, please kindly elaborate more.

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

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.