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

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

Reply
Framboosje1
Frequent Visitor

create relationship

Hi,

 

See picture below. what i want to create is a relationship between the merged table and table 1 so is can report on every column of table 1. CREATE RELATIONSHIP.JPG

1 ACCEPTED SOLUTION
mwegener
Most Valuable Professional
Most Valuable Professional

Hi  @Framboosje1 ,

start with a Base Table, disable the load and create two references (State and City)

StateCity_Base.png

Disable the load for the references and dublicate the State/City Column.

Rename this Column as StateCity

StateCity_Column.png

Than Append this two tables as new query

StateCity_append.png

 

I updated the PBIX File

 

If I answered your question, please mark my post as solution, this will also help others.

Please give Kudos for support.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


View solution in original post

9 REPLIES 9
mwegener
Most Valuable Professional
Most Valuable Professional

Hi @Framboosje1 ,

 

you have to create a column StateCity

 

DAX_StateCity.png

StateCity.png

Relation_StateCity.png

 

If I answered your question, please mark my post as solution, this will also help others.

Please give Kudos for support.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


your solution looks good but can you share with me the pbix file.

mwegener
Most Valuable Professional
Most Valuable Professional

Hi @Framboosje1 ,

 

here my quick & dirty PBIX File.

 

You should generate table 1 in Power Query. (with append queries)

 

If I answered your question, please mark my post as solution, this will also help others.

Please give Kudos for support.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


thanks for the pbix but can you explain to me how to create in PowerQuery. 

thanks in advance

mwegener
Most Valuable Professional
Most Valuable Professional

Hi  @Framboosje1 ,

start with a Base Table, disable the load and create two references (State and City)

StateCity_Base.png

Disable the load for the references and dublicate the State/City Column.

Rename this Column as StateCity

StateCity_Column.png

Than Append this two tables as new query

StateCity_append.png

 

I updated the PBIX File

 

If I answered your question, please mark my post as solution, this will also help others.

Please give Kudos for support.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


Last question 🙂

what should i do if i values in my merged table which are not unique to the Base Table. What should i do so i can create a many to one relationship.

 

example: instead of Ile de Paris - Paris i have Beieren - Munchen. what should i do(remove the not unique values or filter out something like that)

 

 

mwegener
Most Valuable Professional
Most Valuable Professional

Can you explain it with more sample data?

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


mwegener
Most Valuable Professional
Most Valuable Professional

Sorry, but i don't understand the problem.

Why is Osaka not in the StateCity column of the merged table?

 

You know that you can edit the relationship?

Relation_Osaka.png

If I answered your question, please mark my post as solution, this will also help others.

Please give Kudos for support.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


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