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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Merge query based on multi columns

I am looking to merge a table but i am trying to merge based on 2 parametars so for example if i have a column 1 to 10 then another column which is user bandings i need to be able to merge base on column 1 but also to furth filter the dataset to column 2. Is there an easy was to do this?

1 REPLY 1
MFelix
Super User
Super User

Hi @Anonymous ,

 

When you merge two tables you can make it by more than one column you just need to be carefull on the order you select the columns.

 

Two things to be carefull:

  • Use CTRL to select your columns
  • Be sure you match the numbers of the columns on both tables

Meger.png

 

Small number highligted appears after selection of the columns with control and indicates the order of the columns if you change it you will get different results see image below:

 

merge_erros.png

 

First example no matches second example since the first column don't have the same type it doesn't allow the match,.

 

Regards,

MFelix

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.