Formula to Calculate Grand Total - InfoPath Dev
in

InfoPath Dev

Formula to Calculate Grand Total

Last post 04-12-2009 10:08 PM by swathip. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 04-04-2009 12:06 PM

    • Berdia
    • Not Ranked
    • Joined on 04-04-2009
    • Posts 3

    Formula to Calculate Grand Total

    Hi, I am designing Infopath form where I need formula (preferably using Infopath Functions) to calculate Grand Total: "If there is no amount present in field1, filed2 and field3 I want Grand Total field to show amount from Subtotal field only. If field1, field2 and field3 have amount present then I want Grand Total to show total of field1, field2, field3 and Subtotal". Could you please help how to write formula using Functions? Thank you.
  • 04-05-2009 10:32 PM In reply to

    Re: Formula to Calculate Grand Total

    Hi,

    You can achieve this using rules. For the first rule, add the condition as if field1, field2, field3 is blank then the action is to be set Grand total to the subtotal value.   And the second rule is if field1, field2, field3 is not blank then the action is to be set Grand total to add field1, field2, field3 and subtotal.

    Swathip
    www.ggktech.com
  • 04-06-2009 01:34 AM In reply to

    • Berdia
    • Not Ranked
    • Joined on 04-04-2009
    • Posts 3

    Re: Formula to Calculate Grand Total

    Thank you!!! I will try it today.
  • 04-09-2009 04:51 AM In reply to

    • Berdia
    • Not Ranked
    • Joined on 04-04-2009
    • Posts 3

    Re: Formula to Calculate Grand Total

    Here is one more thing which makes it little bit comlicated. Values in Field2 and Field3 are calculated based on Exhange Rate (i.e. field x / field y=Field2 similar fomula applies on Filed3).
    So what happens is when there is no Field2 or Field3 present, instead of value I get "NaN" in Field2 or 3 and Grand total can not recognise it even if I put rule (if Field2/3 is blank ignore it) and Grand Total is giving an error/not calculating amount from any other fields.

  • 04-12-2009 10:08 PM In reply to

    Re: Formula to Calculate Grand Total

    Hi,

    What is the data type of Field2 and Field3?     

    Swathip
    www.ggktech.com
Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.