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 / Converting table data ...
Power Automate
Answered

Converting table data as percentage for email body

(0) ShareShare
ReportReport
Posted on by 10

Hi All,

 

As a heads up - I am very new to power automate.

Hopefully someone can advise me on below issue. I am trying to automate an email that gets its email body populated from SharePoint excel data table. One of the columns in excel is percentages and I am struggling to find a way to convert it in power automate  as percentage as well so that on email body it would show same table as per excel file. I have tried the 'formatnumber' expression, but where it ask for the number in the expression I am at a loos how to reference tables data.

 

As an example - the expression is 'formatNumber(number,’P0′)' and my end goal is formatNumber("reference data in table",’P0′).

 

Is that achievable, or I have to work around it in a different way?

FlowFlowTable data selectionTable data selection

Categories:
  • v-yetonggu-msft Profile Picture
    Microsoft Employee on at

    Hi @GreatOne  ,

    Please try this expression

     

    formatNumber(item()?['ColumnName'],'P0','uk-UK')

     

    Best Regards,

    Sunshine Gu

  • GreatOne Profile Picture
    10 on at

    Hi Sunshine Gu,

     

    Tried and getting below error:

      failed: 'The template language function 'formatNumber' expects its first parameter to be an integer or a decimal number. The provided value is of type 'String'. 

  • Verified answer
    v-yetonggu-msft Profile Picture
    Microsoft Employee on at

    Hi @GreatOne ,

    Please use the float function to convert item()?['ColumnName'] from string type to floating point type.

    formatNumber(float(item()?['ColumnName']),'P0','uk-UK')

     Best Regards,

    Sunshine Gu

  • GreatOne Profile Picture
    10 on at

    Had another error, but figured out it was due to some of the values being non-percentage, so fixed it. Other then that the float expression did the job and now works like a charm, thank you!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 227 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 213 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 151

Last 30 days Overall leaderboard