Displaying % symbol in calculated formula - 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 » Displaying % symbol in calculated formula Displaying % symbol in calculated formula Last post 09-05-2014 12:09 PM by Dan27. 4 replies. Page 1 of 1 (5 items) Sort Posts: Oldest to newest Newest to oldest Previous Next 09-05-2014 05:01 AM Dan27 Joined on 09-05-2014 Posts 4 Displaying % symbol in calculated formula Reply Contact Hello all I'm brand new to InfoPath asnd have just started using it. One of the first tings I am having difficulty with is show a % in a calculated field. I've gone in to format in text box properties and tried a few other things but it still won't show as a % Also is there an easy wat I can stop NaN appearing? I've seen IF statements don't really work like excel.Thanks for your help Dan 09-05-2014 07:04 AM In reply to Heidi Joined on 08-04-2014 Posts 12 Re: Displaying % symbol in calculated formula Mark as Not AnswerMark as Answer... Reply Contact Hi Dan,Could you show me the formula that you're using in your calculated field, and is the NaN appearing in your calculated field, or in another area of your form?Heidi Filed under: calculated value 09-05-2014 07:38 AM In reply to Dan27 Joined on 09-05-2014 Posts 4 Re: Displaying % symbol in calculated formula Mark as Not AnswerMark as Answer... Reply Contact HiIt's just trying to calculate a percentage difference between 2 fields so New Amount - Previous Amount / New Amount NaN appearing in the calculated field when new or previous are empty. I'd like it to be blank. 09-05-2014 08:51 AM In reply to Heidi Joined on 08-04-2014 Posts 12 Re: Displaying % symbol in calculated formula Mark as Not AnswerMark as Answer... Reply Contact concat(sum(@NewAmount) - @PreviousAmount div NewAmount, "%") in the calculated field. That should work to get that percent sign. Replace the NewAmount etc. with the actual field name.For your NaN problem, you can check out this link.Hope that helps!Heidi Filed under: calculated value 09-05-2014 12:09 PM In reply to Dan27 Joined on 09-05-2014 Posts 4 Re: Displaying % symbol in calculated formula Mark as Not AnswerMark as Answer... Reply Contact Thanks for your help. I've managed to get rid of the NaN. How can I get rid of the NaN and display a % symbol within the same formula?Thanks Page 1 of 1 (5 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.
Hello all
I'm brand new to InfoPath asnd have just started using it. One of the first tings I am having difficulty with is show a % in a calculated field. I've gone in to format in text box properties and tried a few other things but it still won't show as a %
Also is there an easy wat I can stop NaN appearing? I've seen IF statements don't really work like excel.
Thanks for your help
Dan
Hi Dan,Could you show me the formula that you're using in your calculated field, and is the NaN appearing in your calculated field, or in another area of your form?Heidi
Hi
It's just trying to calculate a percentage difference between 2 fields so
New Amount - Previous Amount / New Amount
NaN appearing in the calculated field when new or previous are empty. I'd like it to be blank.
concat(sum(@NewAmount) - @PreviousAmount div NewAmount, "%") in the calculated field. That should work to get that percent sign. Replace the NewAmount etc. with the actual field name.For your NaN problem, you can check out this link.Hope that helps!Heidi
Thanks for your help. I've managed to get rid of the NaN. How can I get rid of the NaN and display a % symbol within the same formula?
Thanks