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 / Convert Decimal in thi...
Power Automate
Answered

Convert Decimal in this Flow to Percentage and £ values for HTML Table

(0) ShareShare
ReportReport
Posted on by 13
I have a flow that looks like this:
 
And it exports a table to email similiar to this:
 
I would like to change the values to £ and the GP to percetnage. Would the Format number fucntion be the best way? I have been trying to figure it out for some time.
 
Categories:
I have the same question (0)
  • developerAJ Profile Picture
    4,763 on at
    {
      "Sales Price": "concat('£', formatNumber(item()?['SalesPrice'], '###,##0.00'))",
      "Cost Price": "concat('£', formatNumber(item()?['CostPrice'], '###,##0.00'))",
      "GP %": "concat(formatNumber(mul(item()?['Gp'], 100), '0.00'), '%')"
    }
     
     
     
  • developerAJ Profile Picture
    4,763 on at
    concat('£', formatNumber(item()?['SalesPrice'], '###,##0.00'))  //SalesPrice replace with your column name
     concat('£', formatNumber(item()?['CostPrice'], '###,##0.00')) //CostPrice replace with your column name
    concat(formatNumber(mul(item()?['Gp'], 100), '0.00'), '%') // GP replace with column name. i am multiplying by 100 but if this is not required
    concat(formatNumber(item()?['Gp'], '0.00'), '%')
  • Verified answer
    Tomac Profile Picture
    4,048 Moderator on at
     
    Yes, the formatNumber() function is what you want.
     
    To convert a number to a percent, use this format:
    formatNumber(0.2200435,'P')
     
    To convert to currency in GBP, you would use this format:
    formatnumber(15.3,'C2','en-gb')
     
    To get the information into an array using these formats, you'll use the Select action:
     
    IMPORTANT NOTE: The data that comes from Excel will always be brought over as a string, so you'll need to wrap your values in the float() function, like this:
    formatnumber(float(item()?['Sales Price']),'C2','en-gb')
    
    formatnumber(float(item()?['Cost Price']),'C2','en-gb')
    
    formatNumber(float(item()?['GP %']),'P')

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 557

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 264 Super User 2026 Season 1

Last 30 days Overall leaderboard