Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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 Number | Sales |
| ABC-123 | 432 |
| CDE-123 | 56 |
| ABC-123 | 255 |
| DEF-123 | 9884 |
Table B (Fact Table):
| Model Number | Repair |
| ABC-123 | 45 |
| GGG-123 | 36 |
| FFF-123 | 106 |
| DEF-123 | 834 |
Output (Dimension Table):
| Model Number |
| ABC-123 |
| CDE-123 |
| GGG-123 |
| FFF-123 |
| DEF-123 |
Solved! Go to Solution.
@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])))
@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])))
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.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.