Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hi @all
I have 2 tables, Table A and Table B.
The condition is to match 2 columns (ie, Activity Group and Activity) from Table A with 2 columns (ie, Activity Group and Activity Desc) of Table B, so that I can get the data from the third column in Table B.
For eg:
Table A:
Activity Group | Activity | |
Internal Admin | Internal Admin | |
Fund Account | NAV | |
Fund Account | Invest | |
Fund Account | Internal Admin |
Table B:
Activity Group | Activity | Rates | ||
Internal Admin | Trades | B | ||
Fund Account | NAV | C | ||
Fund Account | Report | A | ||
Internal Admin | Invest | B |
In the above tables,
Fund Account from Table A Matches with Table B, So it should fetch C from Rates Column.
Please help how to solve this in power bi.
Thank you.
Solved! Go to Solution.
Hi @MintuBaruah,
I'd like to suggest you take a look at the following link about creating relationships between many columns:
Relationship in Power BI with Multiple Columns - RADACAD
You can create a calculated column concatenate these two column values and extract them to create a new clause table as the bridge to link two tables based on the merge field values.
How to Join Many to Many with a Bridge Table in Power BI | Seer Interactive
After these steps, you can simply get the related field value based on the relationship keys.
Regards,
Xiaoxin Sheng
Hi @MintuBaruah,
I'd like to suggest you take a look at the following link about creating relationships between many columns:
Relationship in Power BI with Multiple Columns - RADACAD
You can create a calculated column concatenate these two column values and extract them to create a new clause table as the bridge to link two tables based on the merge field values.
How to Join Many to Many with a Bridge Table in Power BI | Seer Interactive
After these steps, you can simply get the related field value based on the relationship keys.
Regards,
Xiaoxin Sheng
@MintuBaruah Find the attached PBIX file for your reference.
Hi @Tahreem24
This is not correct as it is showing B also in Rates.
Conditition: fetch Rates only if Both Activity Group and Activity columns matches with the other tables Activity Group and Activity.
Thank you.
@MintuBaruah Create this DAX Column:
Hi @Tahreem24
Thank you for the reply.
Could you please check the question again as i have added a few rows because i have data similar to the updated data.
I tried the solution but it is showing an error.
Regards.
@MintuBaruah Then try this:
Join based on Activity column.
I am still getting the error as Activity column also has duplicate data in both the tables.
Thank you
Hi @Arul
Thank you for the reply.
I have tried that but by doing that It will also fetch B from Table B because Internal Admin matches.
The conditition is to fetch Rates only if Both Activity Group and Activity columns matches with the other table.
Regards.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
82 | |
81 | |
52 | |
39 | |
34 |
User | Count |
---|---|
95 | |
78 | |
52 | |
49 | |
47 |