web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Formatting an amount t...
Power Automate
Unanswered

Formatting an amount to show in a currency format (i.e. $0.00)

(0) ShareShare
ReportReport
Posted on by 30

Currently the amount from the spreadsheet is displayed in currency format.  I think I need to initialize a variable and re-format that but when I tried to do that is says it needs to be outside of the loop?  I'm new to this so any help would be appreciated!

 

2020-03-25_9-35-42.jpg

Categories:
I have the same question (0)
  • RobElliott Profile Picture
    10,323 Super User 2025 Season 2 on at

    @tiffany initialize a string variable immediately after the Recurrence trigger. Then in the apply to each control you can add an append to string variable and then a compose to format the value in the string variable. Then use the output of that later in your email. But one thing you need to watch is that it looks like you are sending an email to everyone in the spreadsheet for each item every time the flow triggers - unless of course you are using a filter query.

    Rob
    Los Gallardos

     

     

  • tiffany Profile Picture
    30 on at

    So I'm tracking up until the compose.  I've added the initialize variable and added the Append to String Variable.  Do you know the expression I would use for the COmpose?

     

    2020-03-25_10-03-39.jpg

  • efialttes Profile Picture
    14,756 on at

    Hi!

    Please note there is an action block recently released to help with currency conversion.

    https://flow.microsoft.com/es-es/blog/simplified-number-formatting/

    Hope this helps

  • Verified answer
    v-alzhan-msft Profile Picture
    on at

    Hi @tiffany ,

     

    As @efialttes  suggested, you could take a try with the Format Number action, and you could refer to screenshot below to create the flow:

    1.png

  • martinav Profile Picture
    3,340 on at

    This is an expensive method if you have a large dataset.  Any expression that can be written to do this?

  • Aarnav Profile Picture
    59 on at
    I used this expression to format a float to currency with 0 decimal places. To have desired numbers after decimal replace 0 with a number e.g. C2 will give 2 numbers after decimal $4.00
     

     

    formatNumber(items('Apply_to_each_2')?['Total'],'C0','en-AU')

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard