Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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:
  • Verified answer
    luisoscarmtz Profile Picture
    29 on at
    Re: Location.Latitude dissapears my decimal separator

    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.

  • luisoscarmtz Profile Picture
    29 on at
    Re: Location.Latitude dissapears my decimal separator

    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

  • luisoscarmtz Profile Picture
    29 on at
    Re: Location.Latitude dissapears my decimal separator

    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

     

  • Michael E. Gernaey Profile Picture
    41,193 Super User 2025 Season 1 on at
    Re: Location.Latitude dissapears my decimal separator

    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

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,668 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard