You need to sign in to do that
Don't have an account?

Round() function available is SOQL?
Is the ROUND() function available in SOQL?
I am using a SOQL query to average all the records in a formula field (This formula field calculates the time between two date fields)
Currently when I calculate the average for the formula field it includes two decimal places. I would prefer the result only include whole numbers.
Thanks in advance for your help!
I am using a SOQL query to average all the records in a formula field (This formula field calculates the time between two date fields)
Currently when I calculate the average for the formula field it includes two decimal places. I would prefer the result only include whole numbers.
Thanks in advance for your help!
All Answers
Aggregate functions includeAVG(), COUNT(), MIN(), MAX(), SUM(), and more.
https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/sforce_api_calls_soql_select_agg_functions.htm
Date Functions
https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/sforce_api_calls_soql_select_date_functions.htm
Please let us know if this will help you