Sum of Calculated Field - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Sum of Calculated Field

Last post 07-11-2011 06:53 AM by IT_GIRL. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 07-08-2011 12:25 PM

    Sum of Calculated Field

    I have a field "Price" in my repeating table Price is a calculated field  with the following formula Quantity * Unit Price.

    I want a field "Total" to calculate the Sum of Price. How do I do that since in general Sum doesn't work on calculated fields?

  • 07-08-2011 12:27 PM In reply to

    Re: Sum of Calculated Field

    How about using the xpath function "sum" - sum(Price)?

    Patrick Halstead
    Project Manager at Qdabra
  • 07-08-2011 12:36 PM In reply to

    Re: Sum of Calculated Field

    That didn't work either unless I have the syntax incorrect
  • 07-08-2011 08:31 PM In reply to

    Re: Sum of Calculated Field

    Is Price an actual field, or just a calculated value displayed in your form.  If it's not an actual field, you can do this:

    sum(eval(RepeatingField, "my:Quantity * my:UnitPrice"))

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 07-11-2011 06:53 AM In reply to

    Re: Sum of Calculated Field

    Here is a snapshot of what I'm actually doing. There is also a Total field which should sum the price. Price is an actual field that is calculated using quantity and unit price

    Quantity
    Description
    Department
    Acct. Code
    Unit Price
    Price
Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.