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 / Formatting the values ...
Power Automate
Suggested Answer

Formatting the values in an HTML Table

(0) ShareShare
ReportReport
Posted on by 2
I'm working on a flow that sends an email with an HTML table in the body of the email. The flow works with the exception of the number formatting of the table contents. It's set up by running the "Run a query against a dataset" action, where I pull the contents of a table from a dataset in Power BI. I then create the HTML table using First Table Rows value of that output, and use css formatting to format it into an excel style grid.
 
This is the output
Value1 %   Value2    Value3 Value4    Value5   Value6       Value7 %
0.130416962 1087    1679578214 67805    176.7148114     192089       0.768476209
 
And this is the desired output
Value1 % Value2 Value3 Value4 Value5 Value6 Value7 %
13%  $1,087  $1,679,578,214  $67,805  $177  $192,089 77%
 
 
I've tried using the formatnumber function and other actions to try to format the numbers properly but all fail, usually due to an error that it can't find the field I'm calling.
 
How am I able to format? Here is my flow currently:
Categories:
I have the same question (1)
  • Suggested answer
    PaulSGodden Profile Picture
    47 on at
    Hi, Might not solve everything but suggest watching Advanced HTML Tables in Power Automate - Formatting cells, rows and vertical tables (youtube.com) which helped me solve a similar problem I was having. There is a section on formatting numbers including decimal places
  • Suggested answer
    SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at
    For percentage columns
    concat(formatNumber(mul(items('Apply_to_each')?['Value1'], 100), '0'), '%')
     
    For currency columns
    concat('$', formatNumber(items('Apply_to_each')?['Value2'], '###,###'))
     
    For rounding values
    formatNumber(items('Apply_to_each')?['Value5'], '0')
     
     
  • MM-17101826-0 Profile Picture
    2 on at
    @SudeepGhatakNZ where in the flow should I be entering this code?

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard