web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / how to remove Dot if m...
Power Automate
Unanswered

how to remove Dot if my string contains at the end.

(0) ShareShare
ReportReport
Posted on by 162

example :

1000.70.

i need to remove dot after 70 ie  1000.70

 

1000.700

here it should not remove dot

 

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,175 Most Valuable Professional on at
    Re: how to remove Dot if my string contains at the end.

    Hi @MitheshRpa,

     

    You can combine a last function with a slice with an end index of -1

     

    if(equals(last(variables('Number')), '.'), slice(variables('Number'), 0, -1), variables('Number'))

     

     

    last_slice.png

     

  • MitheshRpa Profile Picture
    162 on at
    Re: how to remove Dot if my string contains at the end.

    I am not able to do this in Power automate desktop , yours is cloud flow right

  • Expiscornovus Profile Picture
    33,175 Most Valuable Professional on at
    Re: how to remove Dot if my string contains at the end.

    Hi @MitheshRpa,

     

    Yes, that is correct. I wasn't expecting this to be a PAD type of question, my bad 😂

     

    In that case use a couple of Get subtext actions and an If conditional action.

     

    Below is an example for PAD

     

    getsubtext.png

     

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 497 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 477 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 242

Last 30 days Overall leaderboard