+ Reply to Thread
Results 1 to 14 of 14

Power Query refresh deletes manually entered information

  1. #1
    Forum Contributor
    Join Date
    09-21-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    449

    Power Query refresh deletes manually entered information

    Hello All,

    Please see attached.

    I am trying to edit my Power Query to allow me to manually enter data into the sheet and that data STAY with that corresponding row after refresh.

    I've followed this video and I keep getting: "Expression.Error: A cyclic reference was encountered during evaluation."

    Here are the steps I've taken. I get hung up at the 3:44 mark

    https://youtu.be/duNYHfvP_8U

    Please let me know how I can help.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    09-21-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    449

    Re: Power Query refresh deletes manually entered information

    I'm kind of desperate!

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,706

    Re: Power Query refresh deletes manually entered information

    Can you provide the table for the second set of data. Difficult to reproduce your issue with out all data.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Forum Contributor
    Join Date
    09-21-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    449

    Re: Power Query refresh deletes manually entered information

    Quote Originally Posted by alansidman View Post
    Can you provide the table for the second set of data. Difficult to reproduce your issue with out all data.
    Second set of data? Can you provide clarification? I am trying to add columns to the end of a query. I need the info in those columns to not disappear or get scrambled. Per the video, it gives guidance on how to do it.

    Would the second set of data be the columns that I'm trying to add to the end of the query??

  5. #5
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,281

    Re: Power Query refresh deletes manually entered information

    Hey morerockin,

    I think your error is because you need two different tables to merge together. You need to build a second PQ (connections only) from your data and call this another table. Then when you import your new data from SQL (or wherever) it will merge the old data (with the comment) to the new data and write in the comment in the cell associated with the linked cell being used.

    I'm certainly no expert but it looks like you don't have a second table you are trying to merge with and this is why you get your error message. Hope this helps. The Video was a little fast on some parts.

    I'd create a second table on a new sheet just like the first and pretend that was the data coming in from SQL. Then I'd add a few comments in my original data and go from there to figure it out.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  6. #6
    Forum Contributor
    Join Date
    09-21-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    449

    Re: Power Query refresh deletes manually entered information

    Like the attached? I just created a 2nd PQ of the same set of data.
    Attached Files Attached Files

  7. #7
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,706

    Re: Power Query refresh deletes manually entered information

    No. You need to create a new table with the additional columns as they have done in the video. Upload that as the second table. Merge the two tables and only show the new data columns from the second table. I cannot see what you have done, as it appears that you are uploading data from a third party source and not from the file that you have attached and naturally I have no access to that third party location.

  8. #8
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,973

    Re: Power Query refresh deletes manually entered information

    It's what's called self referencing query.

    As others have explained. You'll first set up your query as normal. Then add 2nd query which will query the table that you are adding manual fields to (i.e. result of first query).

    You may find below tutorial easier to follow.
    https://exceleratorbi.com.au/self-re...s-power-query/
    "Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something."
    ― Robert A. Heinlein

  9. #9
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,281

    Re: Power Query refresh deletes manually entered information

    Hey,
    I'm so close without getting all the way there... (darn)
    See the attached to where I am.
    afdafer PQ Merge Try 2.xlsx

    You need to create two different tables (on separate sheets). I called one sheet "FakeSQL Data" the other sheet I named "You Edit"...
    When you set the source for your two tables you need to set connection only as you can't write over an existing table (maybe?).

    I believe both sources need to be TABLES and not sheets. Look in the Advanced View. This might be my bad and why it doesn't work yet.

    I have both as "Connection Only" and wonder if that is wrong too?

    Maybe one of the PQ Guru's will jump on this and fix it for us, and explain more about the YouTube link above that was skipped.

  10. #10
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,281

    Re: Power Query refresh deletes manually entered information

    I think that CK76 pointed to the correct link. I go away and study that link now!!

  11. #11
    Forum Contributor
    Join Date
    09-21-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    449

    Re: Power Query refresh deletes manually entered information

    Quote Originally Posted by MarvinP View Post
    I think that CK76 pointed to the correct link. I go away and study that link now!!
    Sorry MarvinP. I'm really dumb when it comes to this.

    See attached.

    In the Vendor Cost tab, that is the data my team provides to me with vendor information. It is found on Sharepoint. I suck this information in via Data Connection. The Source PQ tab is intended to replicate that. So for the sake of this sheet, "Source PQ" is nothing more than a data connection to the "Vendor Cost" tab.

    I created a 2nd PQ called Price Sheet. This is the sheet that I need to add more columns too. This is a Data Connection to the Source PQ on the same sheet.

    So, i believe I have 2 tables that I'm trying to merge, no?

    See attached.
    Attached Files Attached Files

  12. #12
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,281

    Re: Power Query refresh deletes manually entered information

    Hey,

    CK76 above gave a link that better describes the intent and shows where the merge and comment selection is made. I don't have access to a SQL or SharePoint server so I'm just trying to make it work myself.

  13. #13
    Forum Contributor
    Join Date
    09-21-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    449

    Re: Power Query refresh deletes manually entered information

    Thank you CK76! This did the trick for me! SOLVED!

  14. #14
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,973

    Re: Power Query refresh deletes manually entered information

    You are welcome and thanks for the rep

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Excel Power Query Refresh or Access Query - 2nd Query Run is faster
    By Steveapa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-03-2020, 10:16 AM
  2. Refresh all Power Query Pivots performing only 1 Query and stops
    By jaryszek in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-04-2019, 04:49 AM
  3. Incremental refresh in Power Query / Get & Transform
    By SHI.NL in forum Excel General
    Replies: 1
    Last Post: 09-17-2019, 05:34 AM
  4. Power Query Refresh Order
    By Steveapa in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-20-2019, 11:02 PM
  5. [SOLVED] table refresh manually but not by query anymore ??
    By incobart in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-10-2019, 12:57 AM
  6. Power Query - How to refresh queries?
    By ypurcaro in forum Excel General
    Replies: 11
    Last Post: 02-11-2019, 06:47 PM
  7. code to refresh power query not working ..
    By Hassan1977 in forum Excel General
    Replies: 0
    Last Post: 08-31-2016, 12:31 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1