Delta between two fields - InfoPath Dev Sign in | Join | Help in Newbie Questions 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 » Newbie Questions » Delta between two fields Delta between two fields Last post 02-16-2012 11:13 AM by Test123. 4 replies. Page 1 of 1 (5 items) Sort Posts: Oldest to newest Newest to oldest Previous Next 02-13-2012 06:57 AM Test123 Joined on 01-11-2012 Posts 35 Delta between two fields Reply Contact I need a quick help on this, i have three fields field1, field2 and field3. i have to set value of field3, to the difference between field1 and field2, example:100-50=50 and 50-100= 50 it should not display negative number. thank you 02-14-2012 09:52 AM In reply to ErnestoM Joined on 08-27-2007 Posts 3,320 Re: Delta between two fields Mark as Not AnswerMark as Answer... Reply Contact Hi,Try a formula like this:(field1-field2) * (1 - 2 * ((field1-field2) < 0))Hope this helps. Ernesto MachadoQdabra® Software/ InfoPathDev.comThe InfoPath Experts – Streamline data gathering to turn process into knowledge.™ 02-14-2012 03:11 PM In reply to Skarn Joined on 04-20-2008 Australia Posts 198 Re: Delta between two fields Mark as Not AnswerMark as Answer... Reply Contact Cool formula - using the logic test as a value - cool. 02-15-2012 08:13 AM In reply to ErnestoM Joined on 08-27-2007 Posts 3,320 Re: Delta between two fields Mark as Not AnswerMark as Answer... Reply Contact All credit goes to Jimmy - he posted this concept a while back in another discussion. :) Ernesto MachadoQdabra® Software/ InfoPathDev.comThe InfoPath Experts – Streamline data gathering to turn process into knowledge.™ 02-16-2012 11:13 AM In reply to Test123 Joined on 01-11-2012 Posts 35 Re: Delta between two fields Mark as Not AnswerMark as Answer... Reply Contact Thank you Ernesto, that work's Great, thanks for the help. Page 1 of 1 (5 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.
I need a quick help on this, i have three fields field1, field2 and field3. i have to set value of field3, to the difference between field1 and field2, example:100-50=50 and 50-100= 50 it should not display negative number. thank you
Hi,
Try a formula like this:
(field1-field2) * (1 - 2 * ((field1-field2) < 0))
Hope this helps.
Cool formula - using the logic test as a value - cool.
All credit goes to Jimmy - he posted this concept a while back in another discussion. :)
Thank you Ernesto, that work's Great, thanks for the help.