How to calculate the sum of all records amount variable in a Multi Row Variable Set

tanuja_g
Tera Contributor

In a MRVS, I have one variable called amount. Have to calculate the sum of all the records amount. If amount is lesser than or is 100.00 it should display approval1 variable so that user can select approver. If the amount is greator than 100.00 it should display approval2 variable. 

tanuja_g_0-1729582526373.png

 

Any solutions should be helpful.

Thanks in advance.

1 ACCEPTED SOLUTION
3 REPLIES 3

dgarad
Giga Sage

Hi @tanuja_g 

Please refer below link.

https://www.servicenow.com/community/itsm-forum/populate-field-outside-mrvs-with-a-total-sum-of-fiel...

If my answer finds you well, helpful, and related to the question asked. Please mark it as correct and helpful.

Thanks
dgarad

tanuja_g
Tera Contributor

Hi dgarad,

Thank you so much, that post helps me alot.

But When we delete or remove any of the records in MVRS - The amount variable remains same with the total value of intial records. The amount is not getting changed(Not subtracting the specific value of deleted records)

How to overcome this drawback?