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 / Subtracting values in ...
Power Automate
Answered

Subtracting values in condition

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi

 

I'm trying to do a calculation in condition that if the max RUC (road user charges) minus the current RUC is less than 1000, it will do other things like send an email reminder etc.

 

I am using data from the users inputs from Forms.

 

The equation I've been trying to use is:

"sub(body('Get_response_details')?['r875e8b3fc8cc4d44889bca2847a8c922'],body('Get_response_details')?['ra1f3c4128af74fc7a172b57f82a47b62'])"

 
 

Any help is appreciated. I'm hoping it's a simple fix, I've just been looking at it for so long I feel as if I'm going crazy!

Categories:
I have the same question (0)
  • Verified answer
    yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @Anonymous 

     

    The expression looks good to me. Can you share a screenshot of any error that you are seeing? Maybe you can also try this: 

     

    sub(int(body('Get_response_details')?['r875e8b3fc8cc4d44889bca2847a8c922']),int(body('Get_response_details')?['ra1f3c4128af74fc7a172b57f82a47b62']))

     

    Hope this Helps!

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 632

#2
Haque Profile Picture

Haque 458

#3
Valantis Profile Picture

Valantis 357

Last 30 days Overall leaderboard