We have a table showing data like OpprId, revenue, area region where table is sorted based on highest revenue. This table was built using power query. Here user wants to add
Edit 29/11/2016: a video is now available to clarify this solution. The code is a little bit different from the code below; basically it's still the same solution.
On another forum I answered a similar question. First the input data (first name and last name) was read and output by a Power Query query. A column was added to that output (Age - manually maintained). Now I created a query that reads data from the Input table, left joins it with the Output table and write the results back to the Output table. So the Output table is both input and output from that query.
let
Source1 = Excel.CurrentWorkbook(){[Name="Input"]}[Content],
Typed1 = Table.TransformColumnTypes(Source1,{{"Last Name", type text}, {"First Name", type text}}),
Source2 = Excel.CurrentWorkbook(){[Name="Output"]}[Content],
Typed2 = Table.TransformColumnTypes(Source2,{{"Last Name", type text}, {"First Name", type text}, {"Age" , type number}}),
Renamed2 = Table.RenameColumns(Typed2,{{"Last Name", "Last"}, {"First Name", "First"}}),
Join1and2 = Table.Join(Typed1,{"Last Name", "First Name"},Renamed2,{"Last", "First"}, JoinKind.LeftOuter),
Removed = Table.RemoveColumns(Join1and2,{"Last", "First"})
in
Removed
Situation:
Procedure:
If I understand your question correct, you want to generate a table using Power Query, have the user enter info into a cell, and then each time you refresh the user's custom cell doesn't get overwritten?
As long as your user-entered cells aren't part of the columns Power Query loads, this should "just work" today. If you modify cells in the Power Query table, that's going to get overwritten each time you refresh.
This isn't the question you asked, but it sounds like you might want to use Microsoft PowerApps to build this report. Power Query isn't going to sync between different versions of the same file...
Disclaimer: I work at Microsoft, in the same business group as PowerApps.