Forum Discussion
Manually enter data in rows of excel table using Power Query
- Jun 16, 2024
The idea as in attached. But it depends on data logic. How to create the key and how to keep sorting depends on that.
That's to query table with manually added row and merge it with the query which returns data from external source. For that you need to have (or generate) , unique ID for each records in the table. Merging shall be within the query which load table into the grid.
You may goggle for self-referencing table. Usually that's about manually added columns, but with some modifications shall work for rows.
I have tried using the internet and doing some experiments myself to find help but only found solutions for manually added columns as you mentioned. I would really appreciate your help with finding a solution for manually added rows.
Thank you.
- SergeiBaklanJun 16, 2024Diamond Contributor
The idea as in attached. But it depends on data logic. How to create the key and how to keep sorting depends on that.
- Akshit_BansalJun 21, 2024Copper ContributorSergeiBaklan
Could you please explain how is the query "Source_1" created?
Because as far as I understood, the data source for query "Source_1" is the resultant table of the query "Source". However "Source_1" is being used in the creation of query "Source". It's kind of like an interconnected loop which I am not able to understand.
I would be really grateful if you could you please help me out with this.- SergeiBaklanJun 24, 2024Diamond Contributor
First, you create Source on any data and load result to the grid.
Second, you query that result, that will be Source_1
Third, you open Source again and modify it using Source_1. With that manually added data combined with the data queried from initial source.
- Akshit_BansalJun 17, 2024Copper Contributor
Than you so much for the help!
Although I have some questions, I went through the solution and didn't understand the purpose of the two excel tables. Could you please elaborate a bit on the solution? I would really appreciate it, you've been a life saver.
- SergeiBaklanJun 18, 2024Diamond Contributor
First table is data source. That could be something else - external file, SQL, whatever. Actually we need only second table. Power Query returns data external source into it, that's what we do on first step. After that query returned table again and combine with initial query.