Sum of Calculated Field - InfoPath Dev Sign in | Join | Help in General InfoPath (Entire Site) InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads InfoPath Dev » InfoPath » General » Sum of Calculated Field 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: Oldest to newest Newest to oldest Previous Next 07-08-2011 12:25 PM IT_GIRL Joined on 06-27-2011 Posts 5 Sum of Calculated Field Reply Contact 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 Patrick Halstead Joined on 08-07-2006 Posts 5,110 Re: Sum of Calculated Field Mark as Not AnswerMark as Answer... Reply Contact How about using the xpath function "sum" - sum(Price)? Patrick HalsteadProject Manager at Qdabra 07-08-2011 12:36 PM In reply to IT_GIRL Joined on 06-27-2011 Posts 5 Re: Sum of Calculated Field Mark as Not AnswerMark as Answer... Reply Contact That didn't work either unless I have the syntax incorrect 07-08-2011 08:31 PM In reply to Jimmy Joined on 07-03-2008 Posts 2,594 Re: Sum of Calculated Field Mark as Not AnswerMark as Answer... Reply Contact 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 MVPQdabra Software 07-11-2011 06:53 AM In reply to IT_GIRL Joined on 06-27-2011 Posts 5 Re: Sum of Calculated Field Mark as Not AnswerMark as Answer... Reply Contact 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.
Use our Google Custom Search for best site search results.
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?
How about using the xpath function "sum" - sum(Price)?
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"))
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