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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Mehay
Helper I
Helper I

Create region

Dears, 

 

I'm trying to create a region column with existing list of countries, what would be the best and fast way of it? 

so i have all countries but need to identify its regions, like Europe, Asia, Africa, Middle East, North America, South America.

 

Or if anyone has pbix file with list of countries and regions, so i can just find relationship with my existing countries column.

 

Thanks in advance.

 

 

1 ACCEPTED SOLUTION
SpartaBI
Community Champion
Community Champion

@Mehay I think you should have html tables there available by the way this website looks. Not in front of PC, so can't make sure. There is also the tables by example feature in the web connector that you can use to extract the tables. It's a good practice. Mayve try a different website.

BTW, Instead of connecting to a static excel you can also just copy paste the table from excel to the 'enter data' option directly in the grid view and continue editing in PQ. 

P.S. don't forget to mark my messages as solutions for community visability and appreciate your kudos 🙂

View solution in original post

5 REPLIES 5
SpartaBI
Community Champion
Community Champion

@Mehay you can download the list from there (scroll down) until you see a download to csv. Better option is to just connect to it via the web data source and extract the table there (it will probably show up as options in the power query dialog).
https://worldpopulationreview.com/country-rankings/list-of-countries-by-continent


2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png

Showcase Report – Contoso By SpartaBI


SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Full-Logo11.png

Dear @SpartaBI ,

 

thanks for your prompt respond.

by saying connect it via the web, you mean directly connecting powerbi with the link?

 

ive tried, unfortunately it doesnt give an option of that particular table, but probably saving it as excel and storing on a local drive C somewhere  and then connecting this excel to powerbi might work. 

Guess this is a soluation then, thanks!

SpartaBI
Community Champion
Community Champion

@Mehay I think you should have html tables there available by the way this website looks. Not in front of PC, so can't make sure. There is also the tables by example feature in the web connector that you can use to extract the tables. It's a good practice. Mayve try a different website.

BTW, Instead of connecting to a static excel you can also just copy paste the table from excel to the 'enter data' option directly in the grid view and continue editing in PQ. 

P.S. don't forget to mark my messages as solutions for community visability and appreciate your kudos 🙂

appreciate it mate, that should work! 🙂

SpartaBI
Community Champion
Community Champion

@Mehay my pleasure 🙂
Hey, check out my showcase report:
https://community.powerbi.com/t5/Data-Stories-Gallery/SpartaBI-Feat-Contoso-100K/td-p/2449543
Give it a thumbs up if you liked it 🙂

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.