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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Anonymous
Not applicable

Linking two aggregated tables

Hello,

 

I have two tables aggregated from two sources each: table 1 and table 2

In table 1 i have columns: unit code (unique and not repeating), number of subscribers 1

In table 2 i have columns: unit code (can repeat for some rows), number of subscribers 2, chanel health (has three possible values: good, weak, excellent)

 

I want to create a merge table which will link these two tables based on unit code and give as a result a table containing the following columns: Unit code, number of subscribers 1, number of subscribers 2, chanel health

 

Using DAX expression in Power BI, I tried this: Merged_Table = NATURALINNERJOIN(table 1, table 2) but it says: No common join columns detected.  although unit code is a commun column......

 

Can you help me please I am blocked

Thanks

6 REPLIES 6
Idrissshatila
Super User
Super User

Hello @Anonymous ,

 

use lookup value to get column from another table based on a common column.

 

https://learn.microsoft.com/en-us/dax/lookupvalue-function-dax

 

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Anonymous
Not applicable

How can I add a column from source 1 in the legend for clustered column chart please??? Knowing that the column to add exists in both sources

Anonymous
Not applicable

Sorry that did not work... Can you please give me an example of a power query to do the merge? I can't establish the merge because my key is not unique so I am really struggling

Anonymous
Not applicable

It because my aggregated tables 1 and 2 does not show at all in power query editor... I only have the sources tables A and B to which no filter was applied. Table 1 and 2 are filter versioin of A and B respectively 

Idrissshatila
Super User
Super User

Hello @Anonymous ,

 

why don't you make it through power query, its much easier and straight forward.

 

check this out https://learn.microsoft.com/en-us/power-bi/connect-data/desktop-shape-and-combine-data

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Anonymous
Not applicable

It because my aggregated tables 1 and 2 does not show at all in power query editor... I only have the sources tables A and B to which no filter was applied. Table 1 and 2 are filter versioin of A and B respectively 

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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