Hello,
I have a repeating table on an entry form that has fields: Job Role, Rate,
Hours and it has a nested repeating table with additional fields: dropdown for
each Milestone M1, M2, etc (MilestoneNum1) and Milestone amount (MilestoneAmount
= rate x hours) for this job role.
So far so good.
I have a second repeating table that is used for automatic Milestone summary
calculation which has another dropdown field (MilestoneNum2) and Milestone total
field (MilestoneCost) which should total the above repeating table values for
the job roles for each milestone for the selected milestone in drop down.
The formula used in MilestoneCost is:
sum(MilestoneAmount[MilestoneNum1 = MilestoneNum2])
This works fine when there is only one summary milestone item in the 2nd
repeater table but when another item is added to say sum up all M1 and M2
values it doesn't work right. It basically does a joined conditional where if it
finds MilestoneNum1 in any MilestoneNum2 value in the entire set in the
RepeaterTable2 it returns a true condition. What I'm looking for is just a match
for that specific MilestoneNum2.
Here is the field layout:
RepeaterTable1
- JobRole
- Rate
- Hours
- Nested RepeaterTable
- MilestoneNum1 (dropdown)
- MilestoneAmount
RepeaterTable2
- MilestoneNum2 (dropdown)
- MilestoneCost
Does anyone have any ideas how to make this work right?
Thanks in advance,