​How to calculate multiplication of two columns?

Last Update: December 27, 2018

Apply for: SPARK Workflow for SharePoint 2013/2016 and Office 365

In this use case you will show how to set up multiplication of two columns. For example, multiply an integer number (count column) with a decimal number (cost column).

Here are the steps on how to

  1. Create a new list workflow. For more details on how to create a list workflow, refer to Create a list workflow use case.
  2. Drag "Math Operations" and "Create History Log" activities onto the workflow canvas and drop it onto a design node How to calculate multiplication of two columns11.png as follows:
    How to calculate multiplication of two columns1.png
  3. Configure " Math Operations" activity as follows:
    How to calculate multiplication of two columns2.png
    Note:A workflow variable named "varTotal" of type Number should be created to store the result.
  4. Configure "Create History Log" activity as follows:
    How to calculate multiplication of two columns3.png
  5. Publish the workflow by clicking on the Publish button in the workflow ribbon.
  6. Now run the workflow to test the result. For more details on how to run a list workflow, refer to Run a list workflow use case.​