Live training: next batches coming soon. Join the waitlist:Waitlists open:Developer Training →Developer →Copilot Studio Training →Copilot Studio →

Power Automate Desktop Mathematical Operations

In this Power Automate Desktop tutorial, we will see how to perform Mathematical calculations using mathematical operators using Power Automate Desktop.

So here we will discuss the below Mathematical operator:

  • Addition
  • Subtraction
  • Multiplication
  • Division
  • AND
  • OR
  • NOT

Let’s see how we can perform a mathematical operation in Power Automate Desktop.

Mathematical Operation in Power Automate Desktop

Here we will see how to do Mathematical operations in Power Automate Desktop.

We will take two variables i.e. num1 and num2, which contain 10 and 20, respectively. Then we will perform the mathematical operations using these two numbers.

Step-1: Open Power Automate Desktop, provide the flow name, then click on Create.

Mathematical operations in Power Automate Desktop

Step 2: We will add 2 variables to the flow i.e. num1 and num2. Expand the variable section and then drag and drop the Set variable action. Then provide the below information:

  • Change the variable name to Num1.
  • Value: Provide the value as 10.
Mathematical operations in Power Automate Desktop

Similarly, following the above steps, add the variable num2 to the flow.

Power Automate Deskto0p Mathematical operations

Operation 1: Addition

Step 3: Expand the Message box section to do an addition operation between 2 numbers. Then drag and drop the Display message action to the flow. Then provide the below information.

  • Message box title: Provide the title of the message box.
  • Message to display: Provide the below code:
%Num1 + Num2%
  • Then change the variable name to ‘Addition’.
Microsoft Power Automate Desktop mathematical operation addition

Step 4: Now run the flow by clicking on the Run button. Then message box will pop up with a result.

Power Automate Desktop mathematical operation addition

Operation 2: Subtraction

Step 5: Expand the Message box section to do a subtraction operation between 2 numbers. Then drag and drop the Display message action to the flow. Then provide the below information.

  • Message box title: Provide the title of the message box.
  • Message to display: Provide the below code:
%Num2-Num1%
  • Then change the variable name to ‘Subtraction’.
Power Automate Desktop mathematical operation subtraction

Step 6: Now run the flow by clicking on the Run button. Then message box will pop up with a result.

Microsoft Power Automate Desktop mathematical operation subtraction