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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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])))

 

Share with Power BI Enthusiasts: 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])))

 

Share with Power BI Enthusiasts: 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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors