Handle formatting of dur correctly even when avg() and sum() are applied.