I am having an issue where hidden fields in a repeat are reset/recalculated when a new repeat record is added. The workflow I have consists of an end user submitting an initial record and then using a dashboard with an embedded survey to submit subsequent repeat records. The embedded survey is the same survey as the initial submission survey. The issue I am running into is that when an end user needs to add additional repeat records using the dashboard, the previously submitted repeat records values get overwritten with the "Calculate" field expression output. This issue does not occur though when the field type is set to "Integer" instead of "Hidden". When the field type is set to "Integer", the form respects the previously submitted repeat values and retains them when new repeat records are added. This issue also persists when the field type is set to "Calculate".
The issue I believe stems from needing to use the "coalesce" function to force a repeat record to calculate a "0" value instead of a blank string so as to properly sum all the repeat fields in the main record.
Attached you will find the XLSX spreadsheet containing my working survey.