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 Apps
Answered

Quick Loop Help!

(0) ShareShare
ReportReport
Posted on by 76
Good afternoon,
 
Fellow PowerApp Masters!
 
I have a basic question but cannot get my head around it.
 
I have a collection.
 
 
All I want to do is remove the comma for any values that have a comma at the end of the string.
 
I tried the below based on online research but it does not work.
 
ForAll(myFinalDivanData2,
        If(Right(DivOutput = ",",-1), Len(DivOutput),-1));
 
Any ideas, how to remove the commas from the DivOutput Columnn which has 7,7,7,
 
Your help is much appreciated I know it is simple but tried different ways but they don't work.
 
Thanks,
 
OS
Categories:
  • Verified answer
    timl Profile Picture
    37,424 Super User 2026 Season 2 on at
    Hi TheBest355 
     
    This formula will strip all trailing commas from the DivOutput column.
     
    
        UpdateIf(
            myFinalDivanData2,
            true,
            {
                DivOutput: If(
                    Right(DivOutput, 1) = ",",
                    Left(DivOutput, Len(DivOutput) - 1),
                    DivOutput
                )
            }
        )
     
  • TheBest355 Profile Picture
    76 on at
    Thank you so much :)

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard