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

Quick Loop Help!

(0) ShareShare
ReportReport
Posted on by 59
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:
I have the same question (0)
  • Verified answer
    timl Profile Picture
    36,319 Super User 2025 Season 2 on at
    Quick Loop Help!
    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
    59 on at
    Quick Loop Help!
    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

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 757 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard