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
pgladwin
New Member

uk postcode

Hello,
I can't discover any documentation which described how to create a filled map from a UK postcode outcode.  The outcode is also known at the postcode district.  

 

I would like to use the UK outcode e.g. BS8 in BS8 2NW to plot a filled map.
There is alot of confusion on this subject.  What is the official answer?  Does anybody have any hints or tips?

Could anybody help?

Phil,

 

3 REPLIES 3
v-haibl-msft
Microsoft Employee
Microsoft Employee

@pgladwin

 

The UK has 4 hierarchical levels of Postal codes and the lowest level of detail is not supported by Bing.

 

Best Regards,

Herbert

v-micsh-msft
Microsoft Employee
Microsoft Employee

Hi pgladwin,

 

Could you please share some data sample here, regarding the postcode district?

Filled map uses bing map to generate, Bing Maps uses the field in the Location well to create the map.  The location can be a variety of valid locations: countries, states, counties, cities, zip codes or other postal codes etc. Bing Maps provides filled map shapes for locations around the world. Without a valid entry in the Location well, Power BI cannot create the filled map.

Check the article below:

Filled map in Power BI

Regards

Thanks for your reply.

I need to plot a filled map using the UK postcode system.

A valid postcode is: BS8 2NW.
The first letters or letter is called the area code, e.g. BS
The first section (before the space) is called the postcode district e.g. BS8

The first character after the space is called the postcode sector, BS8

I don't know what the next level is called but it is useful to plot nonetheless e.g. BS8 2N.  I call it sector plus 1.
My question is how can power BI plot each of the above in separate filled maps?

Here is some dummy data for the County of Kent:

PostcodeCountyValue
BR6 7JTKent2
CT1 1PFKent4
CT12 5JBKent6
CT13 9JWKent8
CT14 7BAKent10
CT15 7HGKent12
CT16 1HUKent14
CT17 9DPKent16
CT6 6SSKent18
DA12 2BHKent20
DA4 0AAKent22
ME1 1SWKent24
ME13 8RXKent26
ME17 3LWKent28
ME19 6PDKent30
ME2 2AHKent32
ME20 7DEKent34
TN15 0QXKent36
TN26 2ALKent38
TN29 0NLKent40
TN3 8LPKent

42

 

 

Area CodeCountyValue
BRKent20
CTKent30
DAKent40
MEKent50
TNKent60

 

DistrictCountyValue
BR6Kent10
CT1Kent20
CT12Kent30
CT13Kent40
CT14Kent50
CT15Kent60
CT16Kent70
CT17Kent80
CT6Kent90
DA12Kent100
DA4Kent110
ME1Kent120
ME13Kent130
ME17Kent140
ME19Kent150
ME2Kent160
ME20Kent170
TN15Kent180
TN26Kent190
TN29Kent200
TN3Kent210

 

SectorCountyValue
BR6 7Kent2
CT1 1Kent4
CT12 5Kent6
CT13 9Kent8
CT14 7Kent10
CT15 7Kent12
CT16 1Kent14
CT17 9Kent16
CT6 6Kent18
DA12 2Kent20
DA4 0Kent22
ME1 1Kent24
ME13 8Kent26
ME17 3Kent28
ME19 6Kent30
ME2 2Kent32
ME20 7Kent34
TN15 0Kent36
TN26 2Kent38
TN29 0Kent40
TN3 8Kent

42

 

SectorPlusOneCountyValue
BR6 7JKent2
CT1 1PKent4
CT12 5JKent6
CT13 9JKent8
CT14 7BKent10
CT15 7HKent12
CT16 1HKent14
CT17 9DKent16
CT6 6SKent18
DA12 2BKent20
DA4 0AKent22
ME1 1SKent24
ME13 8RKent26
ME17 3LKent28
ME19 6PKent30
ME2 2AKent32
ME20 7DKent34
TN15 0QKent36
TN26 2AKent38
TN29 0NKent40
TN3 8LKent42

 

 

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.