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

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
    35,805 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 671 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 424 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 243

Last 30 days Overall leaderboard