Are you trying to Sum multiple values for just that Week itself (based on individual columns) Sum all Mondays and All Tuesuday etc?
Either way remove the [ ] brackets please.
ClearCollect(TimeEntries,
{ MonInput: 1, TueInput: 2, WedInput: 3, ThurInput: 4, FriInput: 5, SatInput: 1, SunInput: 1, 'Total Hours': 7 }
);
Patch(
TimeEntries,
Defaults(TimeEntries),
{
MonInput: 1,
TueInput: 2,
WedInput: 3,
ThurInput: 4,
FriInput: 5,
SatInput: 6,
SunInput: 7,
'Total Hours': Sum(
First(TimeEntries).MonInput,
First(TimeEntries).TueInput,
First(TimeEntries).WedInput,
First(TimeEntries).ThurInput,
First(TimeEntries).FriInput,
First(TimeEntries).SatInput,
First(TimeEntries).SunInput
)
}
)
however, if you are trying to ADD together the current Rows items thats an Add thing not necessarily a Sum thing. It can depend.
If these suggestions help resolve your issue, Please consider Marking the answer as such and also maybe a like.
Thank you!
Sincerely, Michael Gernaey