• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Append "form" inputs to a query

I have a "form" whose function is to gather qualitative input. Quantitative data is prepopulated and if certain criteria are met, a comment is to be entered. Here is a simple representation of the form data. Column D is what I want to capture and archive.

Form data from 5/1/22

ProductForecastActualComment
Widget A20001700Missed target due to whatever blah blah
Widget B15001500Some other blah blah blah

It is simple enough to create a query that pulls this data in--basically copying the table. I want to create a query that captures this, adds a date stamp (or some designation), then tomorrow or next month when the form is filled out again, the existing data in the form is blanked out, new data is entered and whatever is now in the form is appended to the query with a new date stamp. The form is not deployed, so I will be managing the inputs. I don't need to automate the blanking out. I just want to refresh the append query and see the new form inputs populated. I prefer to keep the form and the query result in the same workbook, but that isn't explicitly necessary.

Am I making this harder than it should be?

This is the result I'd be looking for given another day of input:

Form data from 5/2/22
ProductForecastActualComment
Widget A1015blah bah


Desired append query result:
ProductForecastActualCommentDate Stamp
Widget A20001700Missed target due to whatever blah blah5/1/22
WidgetB15001500Some other blah blah blah5/1/22
Widget A1015blah bah5/2/22
 
Personally, I'd recommend adding date/time stamp at form data entry stage. It's not ideal to add stamp when you are consuming (querying) data.

If that isn't possible, best bet is to use self referencing query and build your query in stages.

See tutorial below for how to construct self referencing query/table.
Self Referencing Tables in Power Query - Excelerator BI
 
Back
Top