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

How to calculate a value base on a value in MS Forms

hey,

 

Don't know if this is a stupid question or not but i want to do an operation based on a value that i get from a MS Form.

 

i.e User enter a foreigen currency value (always in Swedish Krona)  and i want to divide that with the Exchange rate to get USD - sound quite simple right but i cannot figure out how to do it nor do i find anyhing googeling it!

 

or number wise 9,500 SEK (from "list of response") / 9.5 (can be hard coded) = 1,000 USD.

 

quite new to Flow so any hits appriciated ,

 

Jörgen

 

anyone got any good advices?

 

regards,

 

Jörgen

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
ScottShearer
Super User III
Super User III

@Jorgen:

 

Here is an example that I believe will work for you.

 

First, you need to convert the currency data returned from Forms to a number (Float).  I convert the string returned from Forms to a Float using he Float expression.  Then, you can make the calculation using the div() expression.

 

You may want to add error handling for the case where a user submits something other than a number in the Form.

 

Div1.jpgDiv2.jpg

 

If this addresses your issue, please mark your question as Solved.

 

If not, please explain.

 

Scott

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

1 REPLY 1
ScottShearer
Super User III
Super User III

@Jorgen:

 

Here is an example that I believe will work for you.

 

First, you need to convert the currency data returned from Forms to a number (Float).  I convert the string returned from Forms to a Float using he Float expression.  Then, you can make the calculation using the div() expression.

 

You may want to add error handling for the case where a user submits something other than a number in the Form.

 

Div1.jpgDiv2.jpg

 

If this addresses your issue, please mark your question as Solved.

 

If not, please explain.

 

Scott

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,211)