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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to remove special ...
Power Apps
Unanswered

How to remove special characters i.e hypen (-)

(0) ShareShare
ReportReport
Posted on by 327

Hi all 

 

I need help removing special characters such as dash, hypen (-) and replacing them with space, on my existing formula

 

formula:

With(
 {
 varw: Split(
 DataCardValue6.Value,
 " "
 ),
 varNo: 2// Define the variable varNo here
 },
 If(
 CountRows(varw) > varNo,
 Concatenate(
 Index(
 varw,
 varNo
 ).Value,
 " ",
 Index(
 varw,
 varNo + 1
 ).Value
 ),
 CountRows(varw) = varNo,
 Last(varw).Value
 )
)

 

current issue:

moerah_0-1712959458543.png

 

Thank you all 😀

Categories:
I have the same question (0)
  • BhargavPatel Profile Picture
    660 Moderator on at

    There is some info missing somewhere. I don't see how the code you have posted is generating the Document Name with hypens.

  • Verified answer
    moerah Profile Picture
    327 on at

    hi @BhargavPatel thank you for the reply

     

    I figured it out, all I had to do was 

    Concat(attach_1.Attachments, Substitute(Name, "-", " "))

    on DataCardValue6.value

    got the result I want, now I'm off to the next problem 😀

     

    thank you

     

     

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard