Forum Discussion
Choropleth using 3 digit US zip code
Is there any mapping currently in Power BI that allows me to fill in color on a US map based on the first 3 digits of the zip code. I cannot use the zip code level as I get an error message telling me I have too many zip codes.
So for example, I would like to program my map to show light green for the value of 2 for any zip code that begins with "121". I would need to map different values for all the US.
Thanks!
Dave P
Hi Anonymous,
The map visual doesn't support to display too much data. As the whole US contains too much zip code that the map can't display, it will throw this message:
We need to apply filter to decrease map data each time. So in your scenario, one work around is to duplicate map visuals to several copies and apply different filters in each copy, makes sure we can see whole US zip code from those copies.
Best Regards,
Qiuyun Yu
3 Replies
- v-qiuyu-msftCommunity Support
Hi Anonymous,
According to your description, you want to fill color for those location which has the same first 3 digits of the zip codes, right?
In your scenario, you can create a custom column to return first 3 digits of the zip codes like below:
First3Zip = left(Geo[Zip],3)
Then drag the Filled Map visual to the report, place this custom column in Legend property. You can go to Data Colors option to change prefer color. See:
Best Regards,
Qiuyun Yu- AnonymousNot applicable
Thanks Qiuyun_Yu. You proposed solution would work for a few 3-digit areas but I believe this would still run into the 5000 limitation for doing the whole US. I unfortunately will need this for all US.
Dave
- v-qiuyu-msftCommunity Support
Hi Anonymous,
The map visual doesn't support to display too much data. As the whole US contains too much zip code that the map can't display, it will throw this message:
We need to apply filter to decrease map data each time. So in your scenario, one work around is to duplicate map visuals to several copies and apply different filters in each copy, makes sure we can see whole US zip code from those copies.
Best Regards,
Qiuyun Yu