cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
s44
Post Patron
Post Patron

Do a percentage calculation in a variable

Hello,
In my workflow I have the following values:

s44_0-1645703472920.pngs44_1-1645703502438.png

 

And with these different values, I would like to perform a percentage calculation in a new variable like this:

100 * outputs('Message') / variables('Nombre_place_Nantes'))
But I don't know how to do that 😞 
 
I have try like this : 
float(100 * outputs('Message') / variables('Nombre_place_Nantes'))
 But it doesn't work 😞
 
Can you help me please ? Thank you in advance ! 
1 ACCEPTED SOLUTION

Accepted Solutions
abm
Super User
Super User

Hi @s44 

 

Thanks for your quick reply. Here are the steps you needed.

 

image.png

 

Expression I used above is

 

div(mul(100, outputs('Compose')),variables('Nombre_place_Nantes'))
 
Thanks


Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

View solution in original post

5 REPLIES 5
abm
Super User
Super User

Hi @s44 

 

What's your variable type?



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials
s44
Post Patron
Post Patron

@abm  It's a float !

s44_0-1645706179334.png

 

abm
Super User
Super User

Hi @s44 

 

Thanks for your quick reply. Here are the steps you needed.

 

image.png

 

Expression I used above is

 

div(mul(100, outputs('Compose')),variables('Nombre_place_Nantes'))
 
Thanks


Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials
s44
Post Patron
Post Patron

I try it ! thanks !

 

s44
Post Patron
Post Patron

It work ! Thank you ! 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (4,958)