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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
gianmarco
Helper IV
Helper IV

Table merging issue?

Dear All,

I have two tables:

 

FACT TABLE

ItemColourSizeValue
159€ 4.385
1610€ 3.160
259€ 3.622
2610€ 9.085
2711€ 5.169
3811€ 9.695
469€ 6.620
4810€ 4.355

 

TEXT TABLE

IDValue
1Ring
2Bracelet
3Crown
4Necklace
5Yellow
6Green
7Blue
8Black
9Small
10Medium
11Large

 

 

My desired result is the following:

 

NEW FACT TABLE

ItemColourSizeValue
RingYellowSmall€ 4.385
RingGreenMedium€ 3.160
BraceletYellowSmall€ 3.622
BraceletGreenMedium€ 9.085
BraceletBlueLarge€ 5.169
CrownBlackLarge€ 9.695
NecklaceGreenSmall€ 6.620
NecklaceBlackMedium€ 4.355

 

I don't think I can manage this through relationships because it is admitted only one relationship between tables. Is merging of queries one for each column the only solution? 

 

Thank you

gianmarco

1 ACCEPTED SOLUTION

4 REPLIES 4
Ahmedx
Super User
Super User

Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.

Screenshot_4.png

Dear @Ahmedx , I hope i didn't have to use merge queries each for every column. This is a sample dataset but actually my fact table consists of 30 columns. I thought there could be a more effective solution. 

pls try this

Screenshot_3.png

ray_aramburo
Super User
Super User

You can achieve it both ways. With relationships (that catalog table will have a 1 to many relationship to the fact table, using the ID column) or using Merge queries within Power Query.





Did I answer your question? Give your kudos and mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.