Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I have a little problem in Power BI. Having the following two simplified tables, I would like to merge them in order to have population and land area of the countries listed in the first table which are also listed in the second table.
However, the problem is, that the country names and country codes differ in both tables, e.g., The United States/ United States of America and USA/ US. Therefore, in Power BI, when clicking on merging, I cannot choose a column which both tables have in common and inserting an index column does also not help.
That is, given are the following two tables:
Country | Code | Population 2021 |
Andorra | AND | 77354 |
United States of America | USA | 331893745 |
France | FRA | 547557 |
Country | Code | Land area 2021 |
Andorra | AD | 470 |
United States | US | 9147420 |
Spain | ES | 499603479 |
And the table I would like to produce is:
Country | Population 2021 | Land area 2021 |
Andorra | 77354 | 470 |
United States of America | 331893745 | 9147420 |
I am new in Power BI and do not see a solution right now.
@Anonymous
There is one way in power query,
You can merge the table by either Country or Code or both as marked in above image,
Tick-marked the Fuzzy Matching option...
After that add range between 0.0 to 1.0 in Similarity threshold, which is basically how many percentage you want to match the selected columns.
In that box you have to try different figures to get maximum matching rows.
------------------------------------------------------------------------------------------------------------------------------
Or you can fetch the data from public page like Wikipedia in which country names are same and you can proceed merging.
Hope this will work for you.
Idk how to do it
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
60 | |
58 | |
56 | |
38 | |
28 |
User | Count |
---|---|
82 | |
62 | |
45 | |
41 | |
40 |