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 / Clear columns inside c...
Power Apps
Unanswered

Clear columns inside collection

(0) ShareShare
ReportReport
Posted on by 284

Hi All,

 

I have a colletion called 'Collection1'. I wold like to clear 'Column5",  'Column6" and   'Column7" of that collection whilst maintaining the data in the other columns. What is the best way to do this?

 

I have triead Dropping the collumns and readding them but the powerapps will complain that the columns already exist and throw an error. 

 

NOTE: the rows of the collection do not contain a UID (if that makes any difference)

Categories:
I have the same question (0)
  • Verified answer
    AnthonyPhan Profile Picture
    284 on at

    Ok the solution i came up with was using the UpdateIf function as it allows you to modify one or more values in one or more records. I hope this helps others. 

    UpdateIf(Collection1, true, {Column5: Blank(), Column6: Blank(), Column7:Blank()})

     

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard