Forum Discussion

deepali_garg's avatar
deepali_garg
Frequent Visitor
4 years ago
Solved

Filled Map not working properly

Hi All, 
I have a dim table with state , county and zip code in it.
When I am maping with Florida as a State and Washington as County., the map works properly and gives correct result whereas provides incorrect result for New Jersey for any county selected.

Data Category for State is State and County is County and Zipcode as Zipcode

Florida state data

 

For New Jersey, no data is populating.

 

Thank You, 
Deepali

  • Greg_Deckler's avatar
    Greg_Deckler
    4 years ago

    deepali_garg OK, well then the problem is in your data, it has truncated zip codes. So, one way to solve this would be to create a new DAX column like:

    zip_code = FORMAT(INT([zip_cd]),"00000")

6 Replies

    • deepali_garg's avatar
      deepali_garg
      Frequent Visitor

      Hi Greg_Deckler 

       

      Sharing sample data 

       

      statecntyzip_cd
      FloridaEscambia32505
      FloridaEscambia32577
      FloridaEscambia32507
      FloridaEscambia32523
      FloridaEscambia32533
      FloridaEscambia32503
      FloridaWashington36529
      FloridaWashington32420
      FloridaWashington32427
      FloridaWashington32431
      FloridaWashington32462
      FloridaWashington32463
      KentuckyWashington40040
      KentuckyWashington40061
      KentuckyMercer40078
      New JerseyCamden8002
      New JerseyCamden8003
      New JerseyCamden8004
      New JerseyCamden8007
      New JerseyCamden8009
      New JerseyCamden8018
      New JerseyCamden8012
      New JerseyCamden8021
      New JerseyCumberland8318
      New JerseyCumberland8320
      New JerseyCumberland8321
      New JerseyCumberland8323
      New JerseyCumberland8324
      New JerseyCumberland8327
      New JerseyCumberland8329
      New JerseyCumberland8332
      New JerseyCumberland8345
      • Greg_Deckler's avatar
        Greg_Deckler
        Community Champion

        deepali_garg I could be mistaken but I'm betting the issue is that you need zero-padded zip codes like 08320. Could be an issue on import in that you need to override the default Change Type step in your query and instead of using numeric value go with Text, which will preserve the zero padding for your zip codes.