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 / FormatNumber issues in...
Power Automate
Answered

FormatNumber issues in a flow

(0) ShareShare
ReportReport
Posted on by 37

I have two cells in the same row in a HTML table within a flow, which takes data from a SharePoint list. Both numbers in the list are formatted as currency in the list, the first one is just a number, and the second is a calculated field.

I formatted the first number in the flow, and it worked fine, but when I tried to format the second number the flow keeps failing.

If I do not use any formatting of the second number, the flow works fine, but the cell out put has around 10 decimal places.

Is there an issue with formatting calculated fields in Power Apps? If so, is there a work around? Many thanks!

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @SaltySeaDog ,

     

    Could you please share screenshots of your flow in edit mode?

     

    Best regards,

  • SaltySeaDog Profile Picture
    37 on at

    Hi,

    Please see the flow below, note that I move the calculated column to its own row to see if that would work, it didn't. I also changed the calculated column to a number by using the VALUE function in my SharePoint list but that didn't work either. FYI the Yes side of the Condition works fine.

    I am pretty new at this, and it you can help it would be much appreciated, as this is giving me a sore head.

    Thanks

     

    Workflow 1.JPG

    Workflow 2.JPG

    Workflow 3.JPG

    Workflow 4.JPG

    Workflow 5.JPG

    Workflow 6.JPG

    Workflow 7.JPG

    Workflow 8.JPG

    Workflow 9.JPG

  • Expiscornovus Profile Picture
    33,876 Most Valuable Professional on at

    Hi @SaltySeaDog,

     

    Can you share your formatnumber expression?

     

    As far as I am aware calculated numbers are returned as strings. Which means you would first have to convert the string (text) to float (decimal) before you use a formatnumber function on it.

     

    Below is an example which converts it to decimal and uses the C2 format to convert it to a currency with two decimals.

     

    formatnumber(float(triggerOutputs()?['body/Cost']), 'C2', 'en-gb')

     

    currency_twodecimals.png 

  • SaltySeaDog Profile Picture
    37 on at

    Hi,

    Here is the expression:

    formatNumber(items('Apply_Info_to_Each_TMDetailsHTML')?['TMLabour'],'C2')
  • Verified answer
    Expiscornovus Profile Picture
    33,876 Most Valuable Professional on at

    Hi @SaltySeaDog,

     

    In that case have you tried the below instead?

    formatNumber(float(items('Apply_Info_to_Each_TMDetailsHTML')?['TMLabour']),'C2')
  • Verified answer
    SaltySeaDog Profile Picture
    37 on at

    Hi,

    I applied 

    formatNumber(float(items('Apply_Info_to_Each_TMDetailsHTML')?['TMLabour']),'C2') and it worked.
    Thanks, it was driving me crazy.
  • CallistusL Profile Picture
    10 on at
    From a SharePoint list and currency field:
    • formatNumber(items('For_each')?['Cost'],'C2') - doesn't work
    • formatNumber(float(items('For_each')?['Cost']),'C2') - doesn't work
    • formatNumber(int(items('For_each')?['Cost']),'C2') - doesn't work

    and because there is no versioning in Power Automate I can't go back to what worked previously to figure out what was different! 

    😠

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 481

#2
11manish Profile Picture

11manish 278

#3
David_MA Profile Picture

David_MA 276 Super User 2026 Season 1

Last 30 days Overall leaderboard