r/ExcelPowerQuery • u/heyyogurlie • Oct 17 '24
Add columns
Hi everyone! I’m very new to PQ so I have few questions whether below concern is possible or not to use PQ.
I have a raw data source which has 10 columns. I am required to add few more columns and these new columns are based on one of the new columns (let’s call it column F). Column F is added by merging two queries and I have no issue with it.
Subsequent new columns will be added based on this column F. If the value in F is x, the values in some of the new columns will be null. Why null? Because the values then will be entered manually. If the value in F is other than x, it’ll copy values in A (one of the original columns). Additionally, these new columns are scattered within the original table.
My question is, is it possible to add new columns which then the values will be entered manually? I want the manually entered data retained after the data refresh.
However from my understanding, if the data is not embedded in the query, then it’ll be lost upon refresh.
If it’s not possible, I guess I have to try another way. I’ve tried with VBA but it’s too heavy for my dataset.
I’d appreciate any of the inputs! Thanks.
View all comments
Show parent comment
1
u/IntelligentTackle945 Oct 18 '24
You’re welcome but maby I’m not understanding your situation completely from your description. I think you should be more specific or provide examples. The previous comment about conditional columns seems like it should work. If not then build another table to join to your query. If you want to build a list or table within the power query editor there is an “Enter Data” button in the HOME tab in the NEW QUERY section that will let you manually enter data as a list or table. Then join that to your existing query?