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
Unanswered

RemoveIf

(0) ShareShare
ReportReport
Posted on by 16

I am trying to use RemoveIf to remove records from an Excel spreadsheet table (as a data source). It works and removes the records, but changes the cell formatting on a lot of the table columns (which then breaks an earlier Collect function I use to populate the data source). I am trying to use Collect to populate the table, then RemoveIf to remove the records. Any ideas on how to prevent RemoveIf from changing the cell/column formatting would be appreciated ... or how to accomplish the general requirement of using Collect to populate the table, then RemoveIf to remove the records.

Categories:
  • v-micsh-msft Profile Picture
    Microsoft Employee on at

    Hi @OlinMeeks,

     

    The table column type could be formatted at the Excel side, and the removeif function only deletes records from the table, I just tried it from my side, and there is no changes related with column format at my side.

    Would you please share more details about the data source information, along with the Collect and the Removeif formula?

    I will make some tests from my side, to check if this could be reproduced.

     

    Regards,

    Michael

     

  • OlinMeeks Profile Picture
    16 on at

    The data source is an excel file.  The removeif is structured as follows:

     

    RemoveIf(datasource,true) where datasource is a table defined in the excel file.

     

    The collect function is structured as follows:

     

    Collect(datasrouce,collection) where collection is a collection created in the app from a series of other data sources and some adjustments.

     

    It appears I am having the most difficulty in the formats that have dates.  When I run the removeif and then the collect - after the first run (runs 2 onward) - it changes the formats from date to general and places <dateTtimeZ> in them.  ie: it is changing 2/1/2017 to 2017-02-01T04:00:00.000Z.

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
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard