Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Looking for a way to get a Count on a Group which is a Date

I'm trying to pull a report with Average Hydrant Inspections completed per day.

I've got the Report Grouped by Date and I have my Distinct Count for # Completed.

The problem is to get the Average I need a Distinct Count of the # of Days and you can't do a Sum on a Group (it isn't an option).

Every Date in the database has time included in the Date so every entry is actually Distinct and my Distinct Count comes up the same as my Total # of Inspections.

I'm looking for some ideas on how to get around this. I thought about using the TRUNCATE but from what I see that is no different then Filtering the Column and I get the same answer. I've done the math Manually for now but would like to get this to work as we could use this for just about every Feature we use. If I could get the report to work, I could load it on the Superintendents Desktop and they could run it whenever they want.

I appreciate any suggestions anyone might have.



Former Member

Hi Ellen,

Create a formula with this code:


Insert a 'Distinct Count' on this formula field.


0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question