Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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.
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.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
74 | |
73 | |
56 | |
38 | |
31 |
User | Count |
---|---|
84 | |
63 | |
63 | |
49 | |
45 |