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 Platform Community / Forums / Power Apps / Add Empty Column in Ex...
Power Apps
Unanswered

Add Empty Column in Excel power Query

(0) ShareShare
ReportReport
Posted on by

Is there a way to add an empty column within a dataset imported from SharePoint online list for a user input

Categories:
I have the same question (0)
  • KhaledEid Profile Picture
    12 on at

    thanks for your reply, but any amount the user keyed in this null column got deleted as soon as the sheet is refreshed

  • KhaledEid Profile Picture
    12 on at

    exactly, i need user input to be sustained meanwhile, SP data to be refreshed

     

  • KhaledEid Profile Picture
    12 on at

    Yes, I had created an empty column in the Sharepoint list before importing it to the power query, but any data filled in that column is deleted when the data is refreshed!!!
    the second option, creating a table, is not applicable, as according to the data coming from the Sharepoint, the user fill in that column

  • JosephDG Profile Picture
    2 on at

    I've found a way to approach this.  See my logic (not code) below:

     

    TableA = An extract of the Excel table containing the blank column in which you've put your notes or whatever (we'll refer to it as "Notes").

    TableB = SharePoint or SQL database dataset that you're using to update TableA

    TableC = The normal query in PowerQuery that typically refreshes your Excel table containing your Notes column.  (You'll understand this by the end).

    1. In PowerQuery, pull TableA (as a connection only - no output to an Excel worksheet).

    • Keep the primary-key column(s) associated with the Notes column and also keep the actual Notes column.  If you don't have a primary key, you'll have to manually create one in PowerQuery by adding a new column containing concatenated field values that won't change when TableB refreshes and overwrites TableA in Excel.  
    • Example: transaction ID or Date, Email Address, and Issue might combine to create a unique identifier.

    2. Pull TableB in PowerQuery. 

    • Add a column onto TableB containing the same Primary Key that you made from TableA (if needed).

    3. Join/merge TableA onto TableB using the primary key column you have or that you created in step 1.

    • This is what becomes TableC.
    • Move columns to where you need them on the final output table. 
    • Remove any columns associated with any custom Primary Key columns you created in the process.

    4. Use TableC to overwrite the original Excel table. 

     

    It might be a bit of a pain.  But, it's necessary if you want to keep your values manually filled into a blank column you created when the query refreshes.

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 493 Most Valuable Professional

#2
11manish Profile Picture

11manish 479

#3
Haque Profile Picture

Haque 328

Last 30 days Overall leaderboard