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 / Power Automate desktop...
Power Automate
Answered

Power Automate desktop | Operator '-' can't be applied to 'Text value'.

(0) ShareShare
ReportReport
Posted on by 90

In one of my Power automate desktop flow, I am trying to use substract (-) operator. But I cannot use this operation inside the for each loop. Why I am getting this error and how can I solve this?

mohashinBhyian_0-1684131610565.png

 

I tried another option. I tried to use as below approach. But still, I am getting errors. whenever I tried to subtract 2 from each item of For loop, I am getting the below error. 

mohashinBhyian_0-1684131931083.png

 

I have the same question (0)
  • Verified answer
    Ezhilvannan_V Profile Picture
    178 on at

    Hi @mohashinBhyian  Please convert your currentitem using convert text to number action, text value you cant subtract.

  • Verified answer
    Srini007 Profile Picture
    3,479 Super User 2026 Season 1 on at

    @mohashinBhyian 

     

    Try as below

     

    Srini84_0-1684145900393.png

     

    CurrentItem is a String and you can't use - to subtract from a String

    That's why you need to Convert the string to Number and then you can subtract

     

    If you like my reply give a kudos

    If this helps, then please consider Accept it as the solution to help the other members find it.

     

    Thanks,

    Srini

     

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

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 450

#2
Haque Profile Picture

Haque 366

#3
Valantis Profile Picture

Valantis 349

Last 30 days Overall leaderboard