Jump to content
  • 0
senicholas

Adding Calculating fields

Question

I have a data page, with three items I click on product, populate a field with the cost per item, add add the number of units, then have calculated field of # of units  * cost per unit. It works fine, but I have another calculating field to add the 3 items for a total cost. The only time the total cost works is when I complete all three items. I assume some kind of a null value is causing the problem. Any ideas who to solve this calculation?

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Hello, @senicholas you are right. 
I suggest you should use a formula like this: SUM(ISNULL([@field:Total_price],0)) , where Total_price would be your calculated field of # of units  * cost per unit.  Or you may try ISNULL([@field:Total_1],0)+ISNULL([@field:Total_2],0)+ISNULL([@field:Total_3],0) , etc.
As an option, you may also use Totals & Aggregation field on the Report page, so you will not need to write any formulas.

Hope this helps!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...