Announcements
/* Collect a single-record table summarizing “Additional Direct Debit” metrics */ ClearCollect( colTest, Table( { // 1. Label for this row Type: "Additional Direct Debit", // 2. Total number of requests of this type Total: CountRows( Filter( colReport, CR = "Additional Direct Debit" ) ), // 3. Number of completed requests Completed: CountRows( Filter( colReport, CR = "Additional Direct Debit" && Status = "Complete" ) ), // 4. Sum of days to close — traps invalid dates per record DaysClose: Sum( Filter( colReport, CR = "Additional Direct Debit" && Status = "Complete" && ! IsBlank( Created ) && ! IsBlank( 'Completion Date' ) ), /* For each record, compute days difference; on error return 0 */ IfError( DateDiff( Created, 'Completion Date', TimeUnit.Days ), 0 ) ), // 5. Average days to close — safe divide-by-zero handling AvgDay: IfError( Average( Filter( colReport, CR = "Additional Direct Debit" && Status = "Complete" && ! IsBlank( Created ) && ! IsBlank( 'Completion Date' ) ), DateDiff( Created, 'Completion Date', TimeUnit.Days ) ), 0 ) } ) )
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 536
WarrenBelz 426 Most Valuable Professional
Haque 305