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
gemcityzach
Helper IV
Helper IV

Getting a listing of all countries from two different columns

Hey folks,

 

I have a reference table that has two country columns (Country_To and Country_From). Each record has a unique ID and the record is about where a service is coming from or being provided. I want to get some sort of composite column that has all of the unique IDs and each country from both columns into one (not concatenated). The reason is that I want to add a second field using ISO Region (e.g., Asia, Oceania, Europe, etc). See second table.

 

I'm not even sure what the correct way to think about this problem is. I want to be able to show the number of IDs, which represent a service contract as the count factor by the Regions where the service is coming from or going to. Maybe this is dumb and I should handle it as Service To Exposure and Service From Exposure?

 

E.g., Total Service Exposure to Asia is 5,000 relationships

E.g., Total Service Exposure to Europe is 2,500 relationships

 

IDCountry_FromCountry_To
123United StatusCanada
234ArgentinaUnited States
234ArgentinaCanada
234ArgentinaHong Kong S.A.R.
345CanadaEngland
345CanadaIreland
345CanadaFrance

 

Enriched with ISO Region

 

IDCountryRegion
345CanadaNorth America
345EnglandEurope
345IrelandEurope
345FranceEurope
234ArgentinaSouth America
234Hong Kong S.A.R.Asia
234United StatesNorth America
1 ACCEPTED SOLUTION
ray_aramburo
Super User
Super User

I prepared a file with what I understood you wanted to achieve. Give it a check (look into Power Query as well) and let me know if it works for you:

ray_aramburo_0-1716301510278.pngray_aramburo_1-1716301522068.png

 

 





Did I answer your question? Give your kudos and mark my post as a solution!

Proud to be a Super User!





View solution in original post

1 REPLY 1
ray_aramburo
Super User
Super User

I prepared a file with what I understood you wanted to achieve. Give it a check (look into Power Query as well) and let me know if it works for you:

ray_aramburo_0-1716301510278.pngray_aramburo_1-1716301522068.png

 

 





Did I answer your question? Give your kudos and mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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