Cherbani,
this will be a bit tricky, as there is no default search available to get this data calculated as you already noticed.
Step1: search all closed offenses for the last 24h
Step2: check each offense for start time and close time
Best way is to use the API offense search. You can create an app for this and use inside your offense analysis.
see sample for API fields to be used. You need a for loop to calculate all closing times needed inside you app.
AQL isnt a good idea as there is no AQL search available on offenses which are stored inside postgres and not ariel db.

------------------------------
[Karl] [Jaeger] [Business Partner]
[QRadar Specialist]
[pro4bizz]
[Karlsruhe] [Germany]
[4972190981722]
------------------------------
Original Message:
Sent: Thu August 11, 2022 10:41 AM
From: cherbani samir
Subject: Offences closing time average
Hello all,
can anyone help me with an AQL or any other method to calculate the average time of closing Offences for the last 24hours for exemple.
Thank you all.
------------------------------
cherbani samir
------------------------------