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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Jeffreyjar
Helper II
Helper II

How to match 2 columns from 2 differents tables to have 01 single column updated

Hello

i  have an issue on matching 2 columns in different tables. One is up to date, the another one is old

 

Need help asap @amitchandak @Jihwan_Kim @tamerj1 @johnt75 

 

the new column (calculated with dax) is "New Agents Codes" of the table "agent list"

Table: agent list

New Agents CodesEAAGTNAME
A79901001ATSOL NDONGO NATHALIA
A19999062LIENOU GAYAP GHISLAINE
A39908001DITONE ARNAUD THEOPHILE
B49903001KENFACK DONFACK WILLIAM JOSPIN
A19999063ROMAY-BELL EDINGA ESSENGUE D

 

the old column is "Numero Agents" of the table "APE February"

Numero AgentsNoms Agents
93003408KENFACK DONFACK WILLIAM JOSPIN
32699002ATSOL NDONGO NATHALIA
32599157ROMAY-BELL EDINGA ESSENGUE D
32599171LIENOU GAYAP GHISLAINE
32402304DITONE ARNAUD THEOPHILE
26499045FOTSO MEMO EPSE FOTSO C.
26499008MOYUE FRANCOISE LADOUCE

 

the expected output  is 

Table: APE february

Numero AgentsNoms Agents
B49903001KENFACK DONFACK WILLIAM JOSPIN
A79901001ATSOL NDONGO NATHALIA
A19999063ROMAY-BELL EDINGA ESSENGUE D
A19999062LIENOU GAYAP GHISLAINE
A39908001DITONE ARNAUD THEOPHILE

 

kind regards

 

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @Jeffreyjar 
Here you go 

1.png2.png

New Code = RELATED ('agent list'[New Agents Codes] )

 

View solution in original post

5 REPLIES 5
tamerj1
Super User
Super User

Hi @Jeffreyjar 
Here you go 

1.png2.png

New Code = RELATED ('agent list'[New Agents Codes] )

 

Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.

It is for creating a new table.

 

Untitled.png

 

New table = 
FILTER (
    SELECTCOLUMNS (
        'Agent list',
        "Numero Agents", 'Agent list'[New Agents Codes],
        "Noms Agents", 'Agent list'[EAAGTNAME]
    ),
    [Noms Agents] IN VALUES ( 'APE february'[Noms Agents] )
)

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Jeffreyjar_0-1656300232727.png

scalar problem @Jihwan_Kim 

Jeffreyjar
Helper II
Helper II

can you do an example please?

@tamerj1 

tamerj1
Super User
Super User

@Jeffreyjar 

Easiest to create a relationship between the agent name columns in both tables then use RELATED to retrieve the the new agent code. Otherwise you can FILTER Agents List with CONTAINSSTRING and wrap it all with MAXX to retrieve the new codes column 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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