Forum Discussion

cwayne758's avatar
cwayne758
Helper IV
10 years ago
Solved

Incorrect map location

Hello,

 

The Map visual seems to be plotting some of my locations incorrectly (see attached).

 

 

Example of data; Florida, United States, 32217

 

14 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    This usually works for me:

     

    Create a new calculated column that concatenates the street address, city, state/province, postal code, and country. It seems to geocode faster this way as well:

     

    ShipToLocation = 'Details'[Ship To Address] & " " & 'Details'[Ship To City] & " " & 'Details'[Ship To Region] & " " & 'Details '[Ship To Postal Code] & " " & 'Details'[Ship To Country]

     

    Instead of placing multiple location-related fields in the location well for the Map visual, just put this one new field in there. This full location can be used with the ArcGis map visual.

    • CharlesK's avatar
      CharlesK
      Frequent Visitor

      Jesus!! this worked like gold!!

      i'm in Kenya so Maps couldnt find aaaany of my towns....

      so i read this and did it kinda half assed...

      i put "Kenya-" infront of every town name.

      it found each and every single town!!!!!

      Kudos sir.

    • smgt90's avatar
      smgt90
      Frequent Visitor

      Thanks, this tip helped me but I put the country then the state and then the city all separated by a space. I tried sorting it as city "space" state and it didn't work.

  • jordanlevine's avatar
    jordanlevine
    Frequent Visitor

    Same deal for me. Kept putting Lake County California into Illinois. I made a new column like the MOD suggested that was county, state and assigned it the data category of County and then it worked fine.

  • jschwabish's avatar
    jschwabish
    Regular Visitor

    I'm having a similar problem for city names. It's putting Las Vegas in Spain, not Nevada.

    • asocorro's avatar
      asocorro
      Skilled Sharer

      Try to provide more info in the column.  For example, "Las Vegas, Nevada" or "Las Vegas, Nevada, USA".  And categorize the column as City.

      • asocorro's avatar
        asocorro
        Skilled Sharer

        cwayne758 It seems the state is confusing the mapping.  Look at how I got it to work:

         

  • jordanlevine's avatar
    jordanlevine
    Frequent Visitor

    Same deal for me. It worked great for everything except Lake County, California. It keeps putting Lake County in Illinois. I did as the mod suggested and made a new column that was county, state and assigned that the Data Category of County and then it worked.

  • _seanrich_'s avatar
    _seanrich_
    Frequent Visitor

    The address data that I'm using comes from sources that I have no control over, so it appears that these addresses are pulled from Google Maps, or unreliable sources. What I ended up doing was finding the address exactly as it is in Bing, and creating a manual table to relate my dataset addresses to the Bing addresses, and replacing them via a calculated column. Example below.

     

    • I have a table in my dataset with the address field; we'll call it Dataset[Address].
    • Manually created table is named MappedAddresses with columns MappedAddresses[DatasetAddress] and MappedAddresses[MapAddress] (with MapAddress being the Bing address).

     

    Two new columns are created in Dataset as follows:

     

    MappedAddress = RELATED(MappedAddresses[MapAddress])

    ReplacedAddress = IF( ISBLANK('Dataset[MappedAddress]), Dataset[Address], Dataset[MappedAddress] )

     

    This is pulling the new Bing address (MappedAddress) where needed, but keeping the dataset address where plotted correctly. I'm using the Dataset[ReplacedAddress] column to plot these datapoints on the Map visualization.

  • Phil_Seamark's avatar
    Phil_Seamark
    Microsoft Employee

    What data category have you selected for that column?  The map will behave differently if you specify the column to be a City or County etc.  Can you try a few different Data Categories with the map?