Yes you can use any custom KPI by adding it to the datasheet. In the Analytics pane you can set your aggregation and field type (duration, frequency, SUM, average etc.)