คำตอบ Infopath multiple Repeating Tables, total last entered field from all tables

  • 20 มิถุนายน 2555 18:42
     
     
    SP Ent 2010, Infopath 2010.  I have an HR site that I have created a "Employee Record" infopath library.  In the infopath form I have a section that is Employee Benefits.  It is several repeating tables, one each for each type of benefit, Health, Dental, Vision Insurance and so on.  There is a field in each table that is "Monthly Premium".  I'm using repeating tables so my client can track changes in benefits.  I want to total the Monthly Premium field but of course when I add more than one record to the repeating tables it's totaling all records.  Is there a way to only total the last record in multiple repeating tables?

ตอบทั้งหมด

  • 22 มิถุนายน 2555 11:02
    ผู้ดูแล
     
     คำตอบ

    Hi JimBizServ,

    Here is my data structure:

    And we can using following formula to get the last value of field2.

    ../my:group1/my:group2[count(../my:group2)]/my:field2

    You can replace the group name and field name with yours. Then sum of all last values.

    Thanks & Regards,
    Emir


    Emir Liu

    TechNet Community Support

    • ทำเครื่องหมายเป็นคำตอบโดย Emir LiuMicrosoft, Moderator 28 มิถุนายน 2555 4:30
    •