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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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])))

 

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors