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 Platform Community / Forums / Power Automate / Multiplication in Powe...
Power Automate
Unanswered

Multiplication in PowerAutomate

(0) ShareShare
ReportReport
Posted on by

Good day

I have a Flow that takes info from Form, enter it in Excel and then I must Initialize 3x variables (because values later on will be multiplied by Fifteen, Ten and Five percent.  At first I chose "Type" Integer, but it gave me an error and I changed it to a Type String.  The error has now disappeared.

janineb_0-1658838945083.png

The problem comes at this point where I initialize a variable for another value (Integer) and multiply it with the Fifteen percent.

janineb_3-1658839349246.png

Please see error:  InvalidTemplate. Unable to process template language expressions in action 'mul3KeyRisks' inputs at line '0' and column '0': 'The template language function 'mul' expects its second parameter to be an integer or a decimal number. The provided value is of type 'String'. Please see https://aka.ms/logicexpressions#div for usage details.'.

janineb_4-1658839494670.png

Can you perhaps help me with the formula in the Compose section?

 

thank you

 

 

 

 

Categories:
I have the same question (0)
  • David- Profile Picture
    1,254 on at

    You need to use a floating decimal number. Set up your variables like:

    David_0-1658841380307.png

    Integers are whole numbers.

  • janineb Profile Picture
    on at

    Sorry, it was a Float and not an integer before, but then the system gave me this error and I had to change it to String:

    The variable 'varFifteen' of type 'Float' cannot be initialized or updated with value of type 'String'. The variable 'varFifteen' only supports values of types 'Float, Integer'.

  • janineb Profile Picture
    on at

    sorry, I understand that I have to put the "0" in front of the .15 ... it is working fine now - thanks

     

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 386

#2
Valantis Profile Picture

Valantis 342

#3
Haque Profile Picture

Haque 336

Last 30 days Overall leaderboard