You are viewing limited content. For full access, please sign in.

Question

Question

Calculations in tables

asked on January 14, 2019

Hi there,

I am still new at LaserFiche and forms in general. I am playing around with calculations and noticed an issue while trying to find the total cost of mileage based on our per mile rate.

For the total cost variable (field type is currency), I have =MULT(Vehicle.Mileage,Vehicle.Rate) which is calling out the appropriate number fields from the Vehicle table. I set the Rate as a number for field type with a default value of 0.58. The mileage is going to be user input and I also have it as a number field type.

When I do the cost using the line above, I get "This field contains a calculation error. References: Mileage, Rate." 

When I create three separate number fields outside the table and use the following line, it multiplies just fine. I used =MULT(Rate1,Mileage) for the cost variable.

Is there something I am doing wrong (being a noob at this, I am totally okay with this) or is it a glitch that I have to use CSS or JavaScript to fix? Please let me know if I need to provide any screenshots for clarity.

I am going to Empower next month and take as many Forms classes as I can to learn more, but figured I would dive into it a little and get an understanding of it.

Thanks for the assistance.

 

Remy

 

0 0

Replies

replied on January 14, 2019

If doing calculations on table members you'll need to use INDEX & ROW to get it to calculate.  Here's some links to other LF Answers posts that could help.

 

https://answers.laserfiche.com/questions/110762/Error-in-table-when-calculating-Line-Total#110858

 

https://answers.laserfiche.com/questions/109632/Where-Is-the-ROW-and-INDEX-functions-Described-for-101#109799

1 0
replied on January 14, 2019 Show version history

Thank you Craig. I worked with my co-worker who is more knowledgeable with this and after playing around it looks like instead of using MULT, using PRODUCT within the table yielded  the results I needed.

I guess different functions work differently whether you are working with tables or not...

1 0
You are not allowed to follow up in this post.

Sign in to reply to this post.