web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Location.Latitude diss...
Power Apps
Unanswered

Location.Latitude dissapears my decimal separator

(0) ShareShare
ReportReport
Posted on by 29

Hi, im working in a project where i need to get location and latitudes, im trying to patch my locations using location:Substitute(Location.Latitude;”,”;”.”)

but for example when my location is 22,678282 i keep getting 22678282, im using the exact same function with Longitude and its working correctly, i also tried to invert columns and the error still happens where Latitude is writed, my database is located in Excel Online and connected via One Drive For Business

Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,335 Super User 2025 Season 2 on at

    Hi @luisoscarmtz 

     

    Please post both numbers so that we can validate your formatting on both, so hopefully we can find out why.

    Also if you can post it in the </> code snipped just to make sure pls


    Cheers
    If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • luisoscarmtz Profile Picture
    29 on at

    Sure, here´s my code:

    luisoscarmtz_0-1696387160337.png

    The problem is with the column "Latitud", Longitud is working good, and also Geolocalización is giving the number correctly:

    luisoscarmtz_1-1696387356822.png

     

  • luisoscarmtz Profile Picture
    29 on at

    I also tried extracting the location from "Geolocalización" column using: 

    Left(DataCardValue18.Text;(Find(" ";DataCardValue18.Text)) - 1)

     

    But the latitude is still patching without the ".", so probably the issue is with Excel format, i also tried patching longitude on the "Latitud" column and it is patching correctly with the "." so the issue its a combination of format and latitude

  • Verified answer
    luisoscarmtz Profile Picture
    29 on at

    if its useful for someone i solved it using:

    Text(Location.Latitude, "0.000000") instead of Substitute function, i really don't know why Longitude is working and Latitude don't but i fixed it this way.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard