cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
carpdeeem
Regular Visitor

Simple Calculation

I'm guessing this is a softball but surprisingly I've been unable to find the answer.  I have a Power Automate flow setup to pass the results of a form submittal to email.  One field from the form is a number of hours.  I would like to multiply the number of hours by 25 to calculate a dollar value so that I can include this dollar value in the email.  I added a Compose step that reads:

 

compose.png

 

When I insert the output into the email, I get "[2*25]" (2 hours as the input in this test).  Could somebody please advise me on the correct syntax or whether I'm barking up the entirely wrong tree?  Thanks in advance!

1 ACCEPTED SOLUTION

Accepted Solutions
cdn4lf
Resolver I
Resolver I

Hi,

 

You need to use an expression.  Try wrapping it in a "mul"

 

mul(NUMBER*25)
 

View solution in original post

2 REPLIES 2
cdn4lf
Resolver I
Resolver I

Hi,

 

You need to use an expression.  Try wrapping it in a "mul"

 

mul(NUMBER*25)
 

View solution in original post

Thank you VERY much, @cdn4lf - exactly what I needed!

 

For anybody else in my same boat, a few notes:

  • I had to convert the form content from a string to an integer before using it in the calculation. Easy to do thanks to the steps @v-micsh-msft outlined here
  • In case somebody is literal and has trouble, the expression needs a comma rather than asterisk: mul(NUMBER,25)
  • Lastly, I was able to insert the expression directly into the email body - no additional Compose step needed (other than those above to convert the string to integer)

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Users online (31,521)