Add manual information into a query | Power Query | Excel Off The Grid

Sdílet
Vložit
  • čas přidán 7. 07. 2024
  • ★ Want to automate Excel? Check out our training academy ★
    exceloffthegrid.com/academy
    ★ Get the example file ★
    exceloffthegrid.com/add-manua...
    ★ About this video ★
    There are many scenarios where raw data itself isn't enough to complete a task efficiently. For example, we may need to add manual information, such as categorization, commentary, or reference numbers.
    In this video, we look at this process and understand how to add manual information into a query.
    0:00 Introduction
    0:36 Example and process
    1:31 Step 1: Get data & unique reference
    4:43 Step 2: Add manual information
    5:24 Step 3: Merge manual info with the original query
    7:26 Step 4: Refreshing the data and testing
    8:56 Important information
    9:27 Conclusion
    ★ Download 30 most useful Excel VBA Macros ebook for FREE ★
    exceloffthegrid.com/
    ★ Where to find Excel Off The Grid ★
    Blog: exceloffthegrid.com
    Twitter: / exceloffthegrid
    #MsExcel

Komentáře • 89

  • @djl8710
    @djl8710 Před 5 měsíci +8

    FINALLY! Somebody has a solution to this! I've been thinking about this for YEARS!

  • @GrainneDuggan_Excel
    @GrainneDuggan_Excel Před 5 měsíci +6

    Thanks for the video Mark. The need to add comments which are not lost on query refresh is a problem that crops up often. So glad you found such a simple/straight forward way to handle this.

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Před 5 měsíci +2

      Thank You. It takes a bit of care to ensure you don't lose information. But once that is sorted, it is a nice technique.

  • @Diejewdie6M
    @Diejewdie6M Před měsícem +3

    I just update the source data with the manual information, save it, open the query, and refresh the query. The data entered in the source data displays in the refreshed query.

  • @zaheer25
    @zaheer25 Před 5 měsíci +1

    This is brilliant. I don't have immediate use for this but it's a great weapon to have in my arsenal!

  • @mohammedelsakally540
    @mohammedelsakally540 Před 5 měsíci +1

    Thank you Mark for your usual support and information you provided to your followers 👍...
    Wishing you all the best in the next Excel Submit event in London 🙏

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Před 5 měsíci

      Thank you. I'm glad you found it useful.
      Not long until the Excel Summit now... exciting times. 😁

  • @Cloudthelegends
    @Cloudthelegends Před 2 měsíci

    Thanks! This tutorial is definitely easier to understand. It helps me a lot. I hope MS will just give us the manual function in the future. So we dont need this hack anymore. Thanks for sharing!

  • @francescamontecucco9985
    @francescamontecucco9985 Před měsícem

    Thank you so much!! That is great, it really helps me finally ti maintain several columns of comments. Great!

  • @biltektek2643
    @biltektek2643 Před 5 měsíci +1

    I would like to thank you again. I have tried and it works. And this will help me on daily basis and no need for me to track earlier manual inputs.
    Thank again

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Před 5 měsíci

      Great news. Just make sure you’ve got backups, just in case the worst happens.

  • @ankitbanka5628
    @ankitbanka5628 Před 4 měsíci +1

    I have been looking for solution for this problem since long...thanks a lot...it will help me to make use of power query to next level...

  • @Fabi_terra
    @Fabi_terra Před 3 měsíci +1

    Uau! That's amazing! I've been looking for a solution like this for quite a while now. Mark, your solutions are brilliant! Thank you a million times!

  • @biltektek2643
    @biltektek2643 Před 5 měsíci

    Wonderful; This is what I need in some of my working files.
    Many thanks

  • @techtonic8713
    @techtonic8713 Před 3 měsíci

    great tutorial and probabaly the most easy one to follow .....thanks

  • @ramruttunaubeeluck9235
    @ramruttunaubeeluck9235 Před 5 měsíci +1

    Great. Thank you

  • @andrewhowe5282
    @andrewhowe5282 Před 5 měsíci +1

    As ever Mark, excellent. And rather cool too. Ask Dave :)

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Před 5 měsíci

      Thanks, I'm glad it was helpful.
      Always ask Dave, he knows everything 😂

  • @GeertDelmulle
    @GeertDelmulle Před 5 měsíci +2

    I’ve been using this technique since 2019 and can attest: this manual data finds itself in a bit of a closed loop, so it can easily be lost.
    It takes extra steps to get it back in again. Backups are your friends.

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Před 5 měsíci +1

      That is the big caveat, as the manual info it doesn't really exist anywhere. So if anything goes wrong, it can easily disappear.

  • @christoffvanrensburg9859
    @christoffvanrensburg9859 Před 4 měsíci +1

    Brilliant! Thank you. Only issue I'm seeing is the second Comment column is coming back after I refresh the data. I deleted the Comment2 column after loading the query, but then it just reappears again. Any ideas would be great.

  • @jgiordimaina78
    @jgiordimaina78 Před měsícem +1

    Thank you for the great easy-to-follow video. It worked great! The problem I am having is that when I sort the column or the list of rows changes because the data in the source (in my case Jira) changes, than the comments are no longer linked to the unique ID. Any tips you can provide to solve this problem?

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Před měsícem

      Does the data out of Jira not give you a unique reference number for each line?

  • @yousrymaarouf2931
    @yousrymaarouf2931 Před 5 měsíci +1

    Fantastic

  • @gonzuic
    @gonzuic Před 5 měsíci +1

    Excelente ejemplo, muy bueno el contenido que tienes en tu canal.
    En tus curso de Power Query ofreces nivel avanzado?
    Gracias

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Před 5 měsíci +2

      Our current Power Query course is for beginner / intermediate users.
      We have got a more advanced course planned for later in the year.

  • @sidharthsarkar4295
    @sidharthsarkar4295 Před 3 měsíci

    finally an easy solution

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Před 3 měsíci

      It's as easy as I could make it, but it still takes a bit so skill and the right scenario to make it work. 👍

  • @AuroraS934
    @AuroraS934 Před 5 měsíci +1

    Excellent video! Thank for posting! May I make a minor correction, at minute 3:22 when you add the Index column, you say "the index is from 0 to 3 because there's THREE rows in that first CSV file", it should be FOUR. Nevertheless, it does not affect the solution provided or the concept.

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Před 5 měsíci +2

      I was hoping nobody would notice that. 🤭
      I decided it made no difference so it wasn’t worth re-recording for. 😬

  • @larmondoflairallen4705
    @larmondoflairallen4705 Před 2 měsíci +4

    This is an excellent example of the adage, "Just because something CAN be done doesn't mean that it SHOULD be done." This is a hacky workaround that is so error prone that it is worse than the problem itself.

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Před 2 měsíci +1

      What method would you use?

    • @Cloudthelegends
      @Cloudthelegends Před 2 měsíci +1

      The only prone to error you are going to get if your data doesnt have unique ID to be linked. And unique ID is unlikely to change. But if you have a better method, please share.

  • @babisflou87
    @babisflou87 Před 5 měsíci +2

    So the commentary 2 column appears only on the first refresh and not on every refresh?
    If this get uploaded on sharepoint, wouldn't it return errors about access of the current excel file to its self (the table we are refreshing)?

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Před 5 měsíci +2

      The manual info is added using the Excel.CurrentWorkbook function, so will not be impacted by the file location.
      The original data may be impacted by placing onto SharePoint (i.e. the data is not available locally), but you would need to resolve that issue no matter what.

  • @martyc5674
    @martyc5674 Před 5 měsíci +1

    Hi Mark- great video and something I’ve been using in 2 solutions for the last year- I use power automate to back them up each night! - I have another file that could use a self referencing table to allow comments be entered on the fly- however the final output is a pivot table, is it possible to ingest a pivot table back into power query?

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Před 5 měsíci +1

      A PivotTable is not a data object, so it can’t easily be loaded back into PowerQuery.
      You would need to play some advanced formula trickery with named ranges to ensure it included the full range of the PivotTable.

  • @sidharthsarkar4295
    @sidharthsarkar4295 Před 3 měsíci +1

    Thanks fir the video,what can we do if there is a formula in the manual columns?

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Před 3 měsíci

      Sorry, it won't work with a formula as it will hard code the result.

  • @stephentribbick9612
    @stephentribbick9612 Před 5 měsíci +1

    That is brilliant! I've been using xlookups and manual additions to the bottom of my file in a very clunky manner. Your technique will make it all so much better. Many thanks.

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Před 5 měsíci

      You're very welcome! I hope you can put it to good use. 😁

  • @nileshrc217
    @nileshrc217 Před měsícem

    Does anyone know what to do if the csv file changes and doesn’t have a unique reference? For changing data like reports

  • @cherianiype
    @cherianiype Před 5 měsíci +1

    brilliant work Mark! Fan from Abu Dhabi!

  • @alannahsteevens5102
    @alannahsteevens5102 Před 4 měsíci

    Hi, I had this working where I had a formula in one of the manually added cells, I had to reconfigure it to add in a few more columns so basically started from scratch - now the formula deletes on refresh, but if I hardcode a comment it stays. any ideas?

  • @sirrob0t
    @sirrob0t Před 3 měsíci

    Dude i've been looking for this for a while. I've learned most of this by deduction, but always had to control the imput order of files so i wouldnt lose my manual input order. Self referencing logic didnt make much sense to me but i got the jist of how to use it at least. I was wandering: is it possible to add some of the manual inputs automatically through a partial match with a dictionary table?

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Před 3 měsíci

      I'm not sure. I suspect it can be manual input or not manual input. I don't think it will work by mixing an automatic element into the cell.

  • @user-dn5gd1rn9f
    @user-dn5gd1rn9f Před 5 měsíci +2

    Nice workaround. I have files where I can use keywords to assign a category but 5% has to be assigned manually. I created a separate table with Unique and manual categories to fill in that last 5%. I feel like that slows down the query though. I’ll try this. You always have such practical and creative ideas!

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Před 5 měsíci +2

      Having a separate Table will be more robust, but may not be as easy for users to update. I don't think there is a clear winner. Use what works.

  • @AshishBajoria
    @AshishBajoria Před 3 měsíci

    Sir , I have a table from which data is coming from power query, and in it I an adding many columns with formula, when I am self refrencing it, my formulas are going away. Please provide me a solution on it.

  • @aruneshbahadur742
    @aruneshbahadur742 Před 5 měsíci

    For some reasons, this does not work for me.
    I added a 'Judgement' column to capture user input.
    Added the table range again with the user input col -> Merged the queries together -> it created a Judgement2 col. which I have deleted.
    Now I make changes to Judgement but when I refresh, the 'Judgement2' col. reappears on the table. also my initial values in Judgement col. does not show against the unique ref. ID against which it was entered but appear in the Judgement2 col correctly. As rows increase or decrease in the data set the values in Judgement col. do not stick with the row with its unique ID.
    Just to add.. my source data is a single file on Sharepoint which will get replaced with a new file with the same structure but refreshed data. Some of the unique ref in my original file may reappear in the refreshed file while some may not.

  • @amitthakrar1600
    @amitthakrar1600 Před 5 měsíci +1

    Lovely hack. How do i keep the old comments and the ones on a seperate column?

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Před 5 měsíci +1

      Before loading the data back into Excel. You would need to add a duplicate "Commentary" column. Let's call it "Previous Commentary"
      The Table would then show 2 columns "Previous Commentary" and "Commentary" with the same text.
      You could make changes to the "Commentary" column, but it's not until you click Data > Refresh All that it would then be loaded back into Power Query, and the two columns would be the same again.

    • @amitthakrar1600
      @amitthakrar1600 Před 5 měsíci

      @@ExcelOffTheGrid thank you so much :)

  • @aruneshbahadur742
    @aruneshbahadur742 Před 5 měsíci

    Can we hide the reference number from appearing in the table which gets loaded on to excel?

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Před 5 měsíci +1

      You could hide it by hiding the column, or reducing the column width to 0. But you can't remove the reference from the Table.

  • @ManthaarJanyaro
    @ManthaarJanyaro Před 5 měsíci

    1st comment with❤

  • @micahmungal3313
    @micahmungal3313 Před 2 měsíci +1

    If i delete something from the source, it deletes the other commentary.

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Před 2 měsíci

      If the unique reference changes, then Yes it will.

  • @user-pl5jo1yq4k
    @user-pl5jo1yq4k Před 5 měsíci +1

    From my lack of more than beginner query understanding, i feel stupid asking you this. But, i implemented this in our company and your hack has been working for 10 days now. Suddenly, our productions managers notes are gone.
    We are using index + production order ID as unique ID. My questions goes, even tho the index changes from time to time, will that result in loss of comments? From my basic undestanding, now matter the index (even tho it changes from 5 to 7) the "new" unique ID is stored in that manual data query and is loading back into my main query..
    Is that correct, or will change in index result in loss of comments?
    However, the comments were there for days, but this morning all his were gone.
    Thank you in advance.

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Před 5 měsíci

      The reference is the most important thing.
      If it changes, then you could lose comments or it could be placed against the wrong item.

  • @chriswall4795
    @chriswall4795 Před 5 měsíci +1

    "Witchcraft! Burn the witch!"🤣
    Presumably if the source files go resorted or removed from Files folder then this would break the unique reference?

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Před 5 měsíci

      If the source files are changed then, Yes you could lose the commentary, or could lead to errors.

  • @txreal2
    @txreal2 Před 3 měsíci

    When I "Create Connection only" on "Manual Info Query", I did not get "Commentary2" in the original Query Table.
    Am I missing something? Thanks

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Před 3 měsíci

      Probably, but I'm not sure what. Go through the steps slowly again.

  • @blackrush1234
    @blackrush1234 Před 5 měsíci +1

    Is there an issue with this situation...when you update the query, if you add new Data from a previous period Excel will update the row data, but will not update the comments. The comments made in row 2, will remain there, but, row 2 now can have a different data from when the comment was made.

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Před 5 měsíci

      The unique reference is critical to this entire process.
      If your data already has a unique reference number, then make sure you use that and that. If you update a file, it will still work.
      If the data does not have a unique reference then file management is critical.
      If you can’t guarantee that a transaction will remain in the same location, then this process will not work.

  • @user-pl5jo1yq4k
    @user-pl5jo1yq4k Před 5 měsíci

    Fantatistic video. However, when doing exactly as you told, im getting millions of duplicates from my exisiting SQL table - to that extent that Excel tells me there is not enough place to store my data. How to solve this? And why am i getting this?

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Před 5 měsíci

      Are you sure you're merging on a unique reference with a Left Outer join?

    • @user-pl5jo1yq4k
      @user-pl5jo1yq4k Před 5 měsíci

      @@ExcelOffTheGrid Thank you. Found out i had dupcilates on my unique id. Solved and thank you! :)

    • @arnelkabeya1341
      @arnelkabeya1341 Před 5 měsíci

      I am encountering the same issue. I am getting duplicates. So many. I have tried with different files but nothing. I have followed the steps. I don't know what I am doing wrong.

  • @Cymka16
    @Cymka16 Před 4 měsíci

    I am a begginer, and I think I am doing something wrong. I am using SQL Data base as source, I did all the steps including the creating uniq ID, but any time I refresh the query, comments change their position and column Comments2 showes up again. What can be the issue?

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Před 4 měsíci

      If you’ve got an SQL Database, I doubt you need to create a unique ref. Doesn’t the data already have a unique ref column?

    • @Cymka16
      @Cymka16 Před 4 měsíci

      @ExcelOffTheGrid Unfortunately, I work with data that can appear more than once within the column, and it changes everyday (value can change or rows can be deleted) For ID I used the columns with values which are not changing.

  • @kellylee5813
    @kellylee5813 Před 4 měsíci +1

    This doesnt work when you sort and refresh

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Před 4 měsíci

      It all hinges on having a unique reference number. Either the number is available in the source data or you need to find a way to create it.
      If your data already has a unique reference, sorting will be no problem. So, it's not the sorting which is the issue, it's whether sorting affects your ability to create the unique reference. If it does, it requires your skill to re-build the solution in a way where it doesn't.

    • @kellylee5813
      @kellylee5813 Před 4 měsíci +1

      @@ExcelOffTheGrid Sorting on its own is fine, its AFTER sorting AND refreshing is when the manual input starts to get misaligned. I have unique references and I confirmed by checking duplicates. Follow ur videos a couple times to check if i did it correctly, and every instance gave me the same outcome unfortunately.

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Před 4 měsíci

      @@kellylee5813
      It maybe that you need to apply Table.Buffer to enforce the sort order (this is a known issue with sorting). Google it, you’ll find some posts about.
      Or it maybe that you’re loading to a data models. In which case the data order is optimised for the data model, where sorting is irrelevant.

  • @aaronren8880
    @aaronren8880 Před 10 dny +1

    DIDNT WORK, i followed your steps but after loading new data, my comments still gone to other rows....

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Před 9 dny

      Then you haven’t got your unique references working correctly.