Skip to main content

Notifications

Power Apps - Microsoft Dataverse
Unanswered

Formula Column and Converting Decimals to Text

(1) ShareShare
ReportReport
Posted on by 4
Hi, I am attempting to concatenate text in a formula column to create a dynamic google maps link. When I attempt to convert a decimal (latitude or longitude values) to text, I'm not able to use a decimal in the formatting. Any workarounds here? It is requiring a formatting argument when using Text().
Categories:
  • Joshua Wollberg Profile Picture
    Joshua Wollberg 4 on at
    Formula Column and Converting Decimals to Text
    Thanks for the help!
     
    I attempted the solution ronaldwalcott recommended and it was so close to working. Unfortunately, if there are any leading zeroes in the decimal, it does not convert accurately (they get dropped).
     
     
    There is probably a way around this I haven't considered, but I will be using power automate to achieve this for now.

    Thanks again!
  • ronaldwalcott Profile Picture
    ronaldwalcott 1,345 on at
    Formula Column and Converting Decimals to Text
    You can try extracting the integer potion and the decimal portion to get the text values then concatenate them.
    I have not tested this.
    For the integer portion Trunc(12345.3454) should work
    for the decimal portion where 234.23 would be the latitude or longitude
    (234.23 - Trunc(234.23)) * 100
     This would produce 23.00 thus giving you the decimal portion
    The factor that you multiply by would depend on the precision in your values and you can then concatenate the period back in
     
    Hope this can help to point you in the right direction 
     
     
     
    Give me a like if helpful
  • KT-07052127-0 Profile Picture
    KT-07052127-0 15 on at
    Formula Column and Converting Decimals to Text
    From Learn: The Text and Value functions only work
    with whole numbers, where no decimal separator is involved. The decimal
    separator varies across locales. Since formula columns are evaluated
    without locale knowledge, there's no way to properly interpret or
    generate the decimal separator.

    I'd use Power Automate to do the conversion.  

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #9 Get Recognized…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,867

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,174

Leaderboard

Featured topics