cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Haufe
Helper II
Helper II

Delete old rows in Excel

Hi,

 

Please, I need to delete the lines of months that have passed in an Excel, for example:

 

I have records in an Excel table and in one of the fields I have the date of the record, I need to delete the records of the months that have already passed, only keeping the current and future.

 

Thank you!

 

Best regards,

1 ACCEPTED SOLUTION

Accepted Solutions
v-bacao-msft
Community Support
Community Support

Hi @Haufe ,

 

If you want to delete the records in the Excel table, you need the table to contain a field with a unique value as the key column.

I have tested on my side, you could refer to the following method to configure Flow.

  • The Key column in my Excel table has a unique value, which is used as a key column to delete the record.
  • The PassDate field records the time with text type.

41.PNG

The configuration of Flow is as follows:

40.PNG

 

It's worth noting here that if date column is of type Date, it may appear as a Number in Flow, and we need to restore it to Date by some method.

Please refer to a similar Thread to restore Date:

https://powerusers.microsoft.com/t5/Building-Flows/Excel-file-to-list-flow-date-issue/m-p/279258#M28...

Image reference:

42.PNG

Hope it helps.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-bacao-msft
Community Support
Community Support

Hi @Haufe ,

 

If you want to delete the records in the Excel table, you need the table to contain a field with a unique value as the key column.

I have tested on my side, you could refer to the following method to configure Flow.

  • The Key column in my Excel table has a unique value, which is used as a key column to delete the record.
  • The PassDate field records the time with text type.

41.PNG

The configuration of Flow is as follows:

40.PNG

 

It's worth noting here that if date column is of type Date, it may appear as a Number in Flow, and we need to restore it to Date by some method.

Please refer to a similar Thread to restore Date:

https://powerusers.microsoft.com/t5/Building-Flows/Excel-file-to-list-flow-date-issue/m-p/279258#M28...

Image reference:

42.PNG

Hope it helps.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,122)