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 Automate / Format number in a tab...
Power Automate
Answered

Format number in a table column

(0) ShareShare
ReportReport
Posted on by 10

Hi,

Is there a way to format this table column amount to be a number with decimals?

 

TKHeng_0-1645932225423.png

 

This is the email that I received. I want all the number to have two decimals point.

TKHeng_0-1645932305258.png

 

Thanks

 

Categories:
I have the same question (0)
  • Ellis Karim Profile Picture
    11,983 Super User 2026 Season 1 on at

    There is a FormatNumber function that you can use. Here are some examples:

     

    Snag_7ecd171.png

    Snag_7e7662c.png
    Ellis
    ____________________________________
    If I have answered your question, please mark the post as Solved.
    If you like my response, please give it a Thumbs Up.

  • TKHeng Profile Picture
    10 on at

    Hi Ellis,

    I get an error. I don't really know how to resolve it. Could you please help?

     

    TKHeng_0-1645971383499.png

     

  • Ellis Karim Profile Picture
    11,983 Super User 2026 Season 1 on at

    The Tax Amount property is text. You will need to convert the the string into a number (float).

    Please try:

    formatNumber(float(item()?['Tax Amount']), 'C2')

     
    Ellis
    ____________________________________
    If I have answered your question, please mark the post as Solved.
    If you like my response, please give it a Thumbs Up.

  • TKHeng Profile Picture
    10 on at

    Tried and unfortunately, it didn't work. Still getting error, any other possible option? thanks

     

    TKHeng_0-1645992704906.png

     

  • Verified answer
    Ellis Karim Profile Picture
    11,983 Super User 2026 Season 1 on at

    I think this error is occurring because some of your  'Tax Amount' values are empty and do not contain any values? For example:

     {
     "Client Name": "Alex Wilber",
     "Email": "Alex@home.net",
     "Vendor Name": "Safe Systems Ltd",
     "Due Date": "2022-09-22",
     "Tax Amount": ""
     }

    If this is the case, you can extend the expression to test for empty or missing values and return $0.00:

    if(empty(item()?['Tax Amount']),'$0.00',formatNumber(float(item()?['Tax Amount']),'C2'))

    ekarim2020_0-1646000922445.png

    Snag_a70eeef.png

     


    Ellis
    ____________________________________
    If I have answered your question, please mark the post as Solved.
    If you like my response, please give it a Thumbs Up.

  • TKHeng Profile Picture
    10 on at

    Thank you very much Ellis!, you are a genius! 🙂😀

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!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 589

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 284 Super User 2026 Season 1

Last 30 days Overall leaderboard