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

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

Reply
ravgh
Regular Visitor

Modelling Custom Geographical Regions for Map Visual

Hi,

 

New to PowerBi and need help understanding how to model regions.

 

I'm working on creating a report that deals with multiple projects spread over several regions. Our company has custom geographical 'regions'. Some regions correspond to continents, while others are countries.

 

Dim Regions Table

 

RegionArea Covered
EUEurope
USUnited States
JPJapan
ASAsia
AZAustralia

 

The data looks like this:

 

Fact Projects Table

 

ProjectIDProject TitleRegionDepartment
1FrodoAZ, JP, EUIT
2BilboJP, ASFinance
3GandalfEU, US, JP, AS, AZIT
4MerryUS, EU, AZOperations

 

So far, I've been able to split the region column in FactProjects table as follows:

 

ProjectIDProject TitleRegion1Region2Region3Region4Region5Department
1FrodoAZJPEUnullnullIT
2BilboJPASnullnullnullFinance
3GandalfEUUSJPASAZIT
4MerryUSEUAZnullnullOperations

 

My main 2 issues are these:

 

1. How do I "count" projects towards multiple regions?

2. How do I do a map visualsation with these custom regions?

 

Thank you for your help.

 

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

In the Query Editor (where you split the Region column into multiple colukns), then is an option under Advanced to split by rows.  After splitting by rows, create a relationship from the Projects to the Regions table.  You should now be able to build your desired visuals. 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

8 REPLIES 8
ravgh
Regular Visitor

Note I've already created the realtionship, and also created a new measure for the Number of Projects card visual:

 

Screen Shot 2020-12-08 at 4.02.40 PM.pngScreen Shot 2020-12-08 at 4.03.01 PM.png

ravgh
Regular Visitor

I would provide the pbix file but apparently new members in this forum can't upload files here.

amitchandak
Super User
Super User

@ravgh , In power Query slip column by Delimiter into columns

https://www.tutorialgateway.org/how-to-split-columns-in-power-bi/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Ashish_Mathur
Super User
Super User

Hi,

In the Query Editor (where you split the Region column into multiple colukns), then is an option under Advanced to split by rows.  After splitting by rows, create a relationship from the Projects to the Regions table.  You should now be able to build your desired visuals. 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thanks Ashish, really appreciate the help. I was able to split the data into rows, but the visuals still aren't working properly.

 

After splitting into rows:

After Splitting into RowsAfter Splitting into Rows

 

Map visual with no slicer selections:

Map with no slicer selectionMap with no slicer selection

 

 

Map with Japan selected in slicer. The number of projects for Japan should be 4, not 1. 

Slicer with Japan selected - the number of projects for Japan should be 4, not 1.Slicer with Japan selected - the number of projects for Japan should be 4, not 1.

You are welcome.  In the Query Editor column, right click on the Region column and trim the extra spaces.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

This worked! The rows needed to be trimmed, as you said. Thank you

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.