Sum of calculated value field in repeating table - InfoPath Dev
in

InfoPath Dev

Sum of calculated value field in repeating table

Last post 08-24-2012 12:26 AM by Jimmy. 6 replies.
Page 1 of 1 (7 items)
Sort Posts: Previous Next
  • 08-23-2012 09:51 AM

    Sum of calculated value field in repeating table

    I have a repeating table within a section, and a calculated field that multiplies the values of the Amount and Hours fields. I am attempting to create another field in the footer of the repeating table that sums up all of the values of the calculated field, but the value remains at zero. I have attached a screenshot of my configuration Thanks, jason
    Filed under:
  • 08-23-2012 11:16 AM In reply to

    Re: Sum of calculated value field in repeating table

    Hello Jason,

    Where are you using that formula?  If you already have a PreliminaryLineAndGradeTotalHours field, perhaps it would make more sense to just sum that.  Is there a reason you're not doing that?

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 08-23-2012 11:23 AM In reply to

    Re: Sum of calculated value field in repeating table

    I'm using the formula on the PreliminaryLineAndGradeTotalHours field I started with this formula "sum(PreliminaryLineAndGradeTotalHours)", but the value always remained zero, regardless of how many rows I had entered. Thanks, Jason
  • 08-23-2012 12:03 PM In reply to

    Re: Sum of calculated value field in repeating table

    Are you using it in a rule, or in a default value formula?
    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 08-23-2012 12:19 PM In reply to

    Re: Sum of calculated value field in repeating table

    I just answered my own question The solution was to use the following formula sum(PreliminaryLineAndGradeAmount) * sum(PreliminaryLineAndGradeHoursUnits)
  • 08-23-2012 06:11 PM In reply to

    Re: Sum of calculated value field in repeating table

    I'm using it in a default value formula Functionally it works, but I think there is room for improvement. It calculates the sum of all of the text boxes, so if there is only an amount on one row, and not amount * hours, the result will be off.
  • 08-24-2012 12:26 AM In reply to

    Re: Sum of calculated value field in repeating table

    So are you saying that some rows have flat amounts, and other rows have per-hour amounts?  Do you have the Total Hours column displaying the expected amount in both cases?
    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
Page 1 of 1 (7 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.