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 / Calculate two feilds i...
Power Automate
Answered

Calculate two feilds in Update a row action

(0) ShareShare
ReportReport
Posted on by 17

I have added a new culumn to QuoteProduct entity as 'Price Inc GST'.

 

Then I need to create a Workflow to calculate tax value and assign update tax feild with calculated tax.

 

Formula is like this

   Tax = (Price Inc GST - Price Per Unit) * Quantity

 

This is the way I tried.

IsankaPT_0-1677155775381.png

 

I tried this expression to update a row and assign the calculated value to the Tax Feild. But gives a error

 

coalesce(triggerBody()?['quantity'], 0) * (coalesce(triggerBody()?['e360_priceincgst'], 0) - coalesce(triggerBody()?['priceperunit'], 0))

 

IsankaPT_1-1677156001979.png

 

I'm new to Power Automate and hit a wall

 

Categories:
  • Verified answer
    Chriddle Profile Picture
    8,729 Super User 2026 Season 2 on at

    There is no * or - operator in PA expressions, use functions sub() and mul().

    Btw, if your trigger is "When a row is added, modified ..." it is not a good idea to modify the row in the flow without a check, because this triggers your flow again and again ....

    Before updating, check if the update is needed!

  • Isanka Thalagala Profile Picture
    17 on at

    Actually it worked.. Here I have mentioned it for the fureture referance

     

    mul(coalesce(triggerBody()?['quantity'], 0),sub(coalesce(triggerBody()?['e360_priceincgst'], 0) ,coalesce(triggerBody()?['priceperunit'], 0) ))

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 227 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 213 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 151

Last 30 days Overall leaderboard