cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Mapping Singapore as a state

Hello all! I am mapping my data by state. I have all of my locations working fine (Even Puerto Rico), except Singapore. I have pasted my code below on how I got all the states to work. For Singapore, I have tried SGP, SP, SG, Sing, the longitute and latitue numbers, Singapore, 819643, .sg, sing., and Republic of Singapore. Everything else is plotting as a state and I need Singapore too as well. It doesn't have to be the EXACT center or Singapore. I just need the dot in there somewhere. Does anyone have any ideas?

 

Entity Location = SWITCH(Complaints[Entity], "Batesville", "indiana", "Monterrey", "Nuevo León", "Pluvigner", " Bretagne", "Lulea", "Lulea", "Singapore", "SGP", "Michigan", "Michigan", "Acton", "massachusetts", "Las Piedras", "San Juan, Puerto Rico")
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Helper I
Helper I

Re: Mapping Singapore as a state

I needed smaller than a country. State didn't work so I used LAT and LONG which worked really well. I recommend that for anyone needing a smaller area for data analysis. But, yes, your solution works really well for country. Thanks!!

View solution in original post

5 REPLIES 5
Highlighted
Resident Rockstar
Resident Rockstar

Re: Mapping Singapore as a state

Hi @Flammie ,

By my research and tests, I'm afraid that the "SGP" is not a state name for Singapore.

You should find a State/Province name in Singapore.

Entity Location =
SWITCH (
    'Table2'[Entity],
    "Batesville", "indiana",
    "Monterrey", "Nuevo León",
    "Pluvigner", " Bretagne",
    "Lulea", "Lulea",
    "Singapore", "Potong Pasir",
    "Michigan", "Michigan",
    "Acton", "massachusetts",
    "Las Piedras", "San Juan,Puerto Rico"
)

Please refer to my test restsult.

map.PNG

Best  Regards,

Cherry

 

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Helper I
Helper I

Re: Mapping Singapore as a state

That did not work for me but I am going to try other places in Singapore and see if I can find one that will work. I'll update if I do. Thanks!

Highlighted
Helper I
Helper I

Re: Mapping Singapore as a state


@v-piga-msft wrote:

Hi @Flammie ,

By my research and tests, I'm afraid that the "SGP" is not a state name for Singapore.

You should find a State/Province name in Singapore.

Entity Location =
SWITCH (
    'Table2'[Entity],
    "Batesville", "indiana",
    "Monterrey", "Nuevo León",
    "Pluvigner", " Bretagne",
    "Lulea", "Lulea",
    "Singapore", "Potong Pasir",
    "Michigan", "Michigan",
    "Acton", "massachusetts",
    "Las Piedras", "San Juan,Puerto Rico"
)

Please refer to my test restsult.

map.PNG

Best  Regards,

Cherry

 


What is your data catagorized as? I have mine set to "State or Province"

Highlighted
Resident Rockstar
Resident Rockstar

Re: Mapping Singapore as a state

Hi @Flammie ,

I set the Entity Location column to be "Country" data categeory.

Capture.PNG

You also could have a  reference of my attachement.

Best Regards,

Cherry

 

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Helper I
Helper I

Re: Mapping Singapore as a state

I needed smaller than a country. State didn't work so I used LAT and LONG which worked really well. I recommend that for anyone needing a smaller area for data analysis. But, yes, your solution works really well for country. Thanks!!

View solution in original post

Helpful resources

Announcements
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors