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 Apps / How to remove extra sp...
Power Apps
Answered

How to remove extra space/value from Choice Box

(0) ShareShare
ReportReport
Posted on by 641

Hi All,

 

I have a string which is having value like : (in fig 1)a nd I have a choice field on which I its value display with blank values

 

Error.png

 

I used split function - Split(TextInput2.Text,",")

 

I want result to be only with values

a

b

c

Categories:
I have the same question (0)
  • Verified answer
    CarlosFigueira Profile Picture
    Microsoft Employee on at

    You can Filter the result of the Split function to return only those entries that are not blank. For example, the expression below returns only those that are not blank or whitespaces only:

    Filter(
     Split(TextInput2.Text, ","),
     Trim(Result) <> "")

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

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard