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 / Remove doesn't remove ...
Power Apps
Unanswered

Remove doesn't remove record from excel

(0) ShareShare
ReportReport
Posted on by

Hi all,

 

I am using the remove command as so:

Remove(Table1, 'Main Data Table'.Selected)

However this doesn't actually change the table, only the display on powerapps' side. Is there a way to have this command change the table itself in the same way many of the other powerapps commands do?

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi Colleen,

     

    If your data source is a table named Table1 in an Excel file residing in either DropBox or OneDrive  and you have selected a record in either a datatable control or a gallery control, Remove (Table1, Gallery1.Selected) or Remove(Table1, DataTable1.Selected) should remove it from the Excel table.  However, you may want to check to see if the data source for your Remove function is a collection derived from an excel data source and not the data source itself.  If it is, that would explain why the record is removed from the display and not from the underlying Excel table. 

  • Community Power Platform Member Profile Picture
    on at

    Hi @Drrickryp,

     

    Unfortunately that isn't the case which is why I am confused as to why it isn't working. The formula is connected directly to the DataTable from excel and yet still isn't changing the table. My other commands linked to the same table (submit, edit etc) are working and changing that table.

  • Brian Dang Profile Picture
    3,976 on at

    Hi @Anonymous, 

    Can you clarify a few things more explicitly:

    • You have an OnSelect formula in your DataTable that is expecting the selected record to be removed
    • Is the selected record removed from the datasource?
    • If I understand correctly, the selected record does not appear removed from the data table.
    • Can you share a session ID where you can get this to occur?
      https://aka.ms/pa/sessionid
      https://aka.ms/pa/sessionid-web

     

    Brian

  • oscarmqz Profile Picture
    4 on at

    Hi @Anonymous were you able to make this work? I'm having the same issue...

     

    Regards,

    Oscar

  • Mr-Dang-MSFT Profile Picture
    on at

    Hi @oscarmqz

    Are you having the exact same issue as @Anonymous?:

    • Data stored in Excel
    • Using Remove(Table1,DataTable.Selected) to remove a record
    • Record is removed in app, but not in the underlying spreadsheet
  • civector Profile Picture
    6 on at

    I am having exactly this problem with deleting a row from Excel using PowerApp.

     

    My PowerApp uses both a SharePoint List and an Excel file stored in SharePoint.  I create, update and delete the same data from both sources.  I use the SharePoint List as my main source for the app, but add the Excel file so that I can download it and update a desktop version of the file (with macros) to refresh the desktop version.  This way, I can use the app to provide an interface for viewing and modifying the data and use VBA to refresh that data for various users.  

     

    With "Assets" as the SharePoint List and "AssetsXL" as a table in Excel:

     

    Remove(Assets,LookUp(Assets,Title=varTitle));
    Remove(AssetsXL,LookUp(AssetsXL,Title=varTitle));

     

    The SharePoint List remove the row as expected but the Excel Table does not.

     

  • HaoZhong Profile Picture
    9 on at

    It's very unstable if you use excel online with Powerapps especially dealing with over 10 records. I have issues removing record and filter even thought there is less than 2000 rows in my Excel. I won't trust my app to function correctly if I use it to write or remove Excel Online. Please do not waste your time using Excel Online. I heard you should use Sharepoint instead if you want to use fee stuff. Excel online is probably good for prototyping or before your actual database is up  and running. Excel Online plus Powerapps = unpredictable results!! 

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard