Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Subtracting values in condition

(0) ShareShare
ReportReport
Posted on by

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!

  • Verified answer
    yashag2255 Profile Picture
    24,442 Super User 2024 Season 1 on at
    Re: Subtracting values in condition

    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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow