A family of Microsoft relational database management systems designed for ease of use.
Post the SQL of your queries.
Build a little, test a little.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have a query which is calculating totals on several fields. The query has a field called site (which is the customer name) and then several fields which calculate totals using SUM. This works nicely.
However when I add a new calculated field with the following calculation (using the total fields from the same query) it doesn't work, I know that I'm doing something wrong but I just can't work out what, it's complicated I appreciate but can anyone help?
Combined spot: 100-([SumOfSpot Effluent Failures]+[SumOfSpot Air Failures])/([SumOfSpot Effluent]+[SumOfSpot Air])*100
A family of Microsoft relational database management systems designed for ease of use.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Post the SQL of your queries.
Build a little, test a little.
I've tried creating a new query and basing this query on the query containing the totals, then creating a new calculated field in the new query - still no joy
However when I add a new calculated field with the following calculation (using the total fields from the same query) it doesn't work,
In most cases you can not use a calculated field in a calculated field of the same query. The reason is that it ain't happened yet!
You have to repeat the same calculation again in your second calculation like this --
First_Cal: Field1 + Field2
Second_Cal: (Field1 + Field2) * Field3 --- You can not use ((First_Cal) * Field3)
Build a little, test a little.