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.

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.

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

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’.

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

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’.

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