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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
nyiballs
Regular Visitor

json county fill map, fips leading zeroes, text vs number format

Hi all.  First time posting a question.

 

I have a JSON map where I am trying to use fips to identify US Counties (County name is no good because of all of the duplicates, and even County Name - State isnt working).

 

When I use the fips as-is, they are formated as a number, which drops the leading zero and gives my blank states (below):

 

fips1.PNG

 

However... if I do a format([zip],"00000") it looks great, but it converts to text.  Ironically, the ones with the leading zeroes work, but the straight numerical ones disappear (below):

 

fips2.png

 

So... I'm at a loss... If I do text, I get my leading zeroes and nothing else.  If I do number, I get those, but not the leading zeroes.  

 

Would love to know if someone has experience with this and what workaround they have come up with...

 

Here's the map I used btw: https://eric.clst.org/tech/usgeojson/

2 REPLIES 2
v-lionel-msft
Community Support
Community Support

Hi @nyiballs ,

 

Did you set the data category to Postal zip?

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Greg_Deckler
Community Champion
Community Champion

Generally at least in the default map visuals if you keep your zip code from being converted to numeric in Power Query and thus preserve the leading zeros and you flag that field as a Postal Code then it all works.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors