I have a BAQ using data from a subquery to create the below screenshot. The formula below is what was used to produce the data in the NEEDCOUNT column (0.00). The NEED and COUNT columns show the results of the two pieces of the formula while the TIMES, PLUS, and MINUS are the result of replacing the (/) with the appropriate mathematical sign (*, + , -). I have another BAQ which uses the same formula with different fields which produces the correct result.
Has anyone seen this behavior? If so, how do I correct the behavior? Any thoughts?
If one of the numbers is an integer (not a decimal) SQL is kinda picky and will truncate the division. Try casting both values to a decimal or double first before dividing.
I didn’t change anything with the formula but only changed the format for the two calculated fields in the subquery to be decimal and not integer. Was i to make a change to the original formula below: