Form with dynamic inputs

I have a table with metrics with a column named Project.
Currently I have a form to update metrics where you have to update metrics one by one.

It would be ideal if there is a way to update all the metrics with just one form.
My idea was to have a dynamic form that presents the appropriate fields when you select a project.
The columns of the table populated by the form are Project, Metric name, and Value.
Thanks everyone