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
GeekAlfPro
Resolver II
Resolver II

Add column to another table

Hello,

 

in my report i have a table, and i want to add in this table the value of a column from anoter table.

the key between the two table is  "internal_id" and the date

 

The trouble is when i add the value of the second table, the rows of the first are duplicated.

GeekAlfPro_0-1648742899771.png

in my second table, i only have "Exploitation" for this vehicle and this date

How can i set this double key ?

Do i need to do this in power query ?

 

in sql it would be something like

select 

a.internal_id
,a.date
,a.blabla
,b.blabla

from table a left join table b

on a.internal_id = b.internal_id and a.date = b.date

 Thanks

1 ACCEPTED SOLUTION

Hello @amitchandak 

 

thanks for your suggestion

i managed to achieve my issue with this post : https://community.powerbi.com/t5/Desktop/Add-New-Column-That-Retrieves-Value-From-Another-Table/m-p/...

i use the minx function, but it doesn't matter because i only have one value per vehicle and by day.

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@GeekAlfPro , You can create a concatenated column and use that to join in merge query if needed

Hello @amitchandak 

 

thanks for your suggestion

i managed to achieve my issue with this post : https://community.powerbi.com/t5/Desktop/Add-New-Column-That-Retrieves-Value-From-Another-Table/m-p/...

i use the minx function, but it doesn't matter because i only have one value per vehicle and by day.

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.