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 Automate
Answered

Formatting Numbers

(0) ShareShare
ReportReport
Posted on by 1,962 Moderator

Hi all,

 

A flow that was working with the below compose action:

 

formatNumber(int(outputs('Get_item')?['body/Invoice_Amount']), '0,0.00''en-gb')
 
Now seems to have failed. The flow is still running and I need to correct the above if necessary then run a new test to complete it.
 
I know you can read this but basically take the raw out from a calculation, format to thousands and two decimal places.
 
Regards,
 
Andrew
 
 

 

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,876 Most Valuable Professional on at

    Hi @Andrew_J,


    The expression itself looks ok. Maybe you have a list item which has an empty Invoice_Amount field?

     

    If so, can you try this expression instead:

    if(empty(outputs('Get_item')?['body/Invoice_Amount']), 'Field is empty', formatnumber(int(outputs('Get_item')?['body/Invoice_Amount']), '0,0.00', 'en-gb'))

     

    Btw, can you also check the outputs of the failed flow run of the Get Item action and share this with us? This could also help with troubleshooting.

  • Andrew_J Profile Picture
    1,962 Moderator on at

    @Expiscornovus 

     

    The data you need is as follows:

    Andrew_J_0-1667562312246.png

    The column should never have any blank data in it.  but the start of the flow is as follows:

     

    Andrew_J_1-1667562879258.png

     

    Maybe I need to introduce a delay somewhere so it has a chance to catch up with itself.  Then update the list with the values from the compose.

     

    Regards,

     

    Andrew

     

     

     

     

     

     

     

     

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

    Hi @Andrew_J,

     

    Thanks for sharing those screenshots. 

     

    Can you expand the Get Item action in your second screenshot and have a look in the Outputs section?

     

    Try and find the Invoice_Amount column like in the example below. And if it is available, check what the value is in that column and share that screenshot over here.

     

     

    get_item_output.png

  • Andrew_J Profile Picture
    1,962 Moderator on at

    @Expiscornovus 

     

     As requested:

     

    Andrew_J_0-1667570119925.png

     

    The green I think is my input value, the blue is calculated.  I do not want to be entering this data in manually.  The main reason for the using the expression at the start of this thread is to make sure it looks right when input this into the word template, create a PDF and then the send for signiture. 

     

    Regards,

     

    Andrew

  • Andrew_J Profile Picture
    1,962 Moderator on at

    @Expiscornovus 

     

    the list date fields

    Andrew_J_1-1667570761594.png

     

     

     

     

     

     

     

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

    Hi @Andrew_J,

     

    I see your value is a decimal and not a whole number. Try using a float instead of an int in your expression.

     

    Try something like below:

    formatnumber(float(outputs('Get_item')?['body/Invoice_Amount']), '0,0.00', 'en-gb')
  • Andrew_J Profile Picture
    1,962 Moderator on at

    @Expiscornovus 

     

    That worked a treat, its always the small things that catch us out who are only dabbling in this from time to time.

     

    Have a good weekend.

     

    Andrew

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 427

#2
Vish WR Profile Picture

Vish WR 316

#3
David_MA Profile Picture

David_MA 260 Super User 2026 Season 1

Last 30 days Overall leaderboard