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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

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,963 Moderator 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 839

#2
Valantis Profile Picture

Valantis 533

#3
Haque Profile Picture

Haque 412

Last 30 days Overall leaderboard