Derivative entities don’t currently generate statistics (they have no state class).
I have an open PR to add this but it’s been waiting a little while.
You can workaround by either creating a new template sensor from that derivative with a state class, or maybe using customize: will work, I am not certain.
Any further hint on customize:, e.g., where to find further information about its usage (I simply don’t know where to insert it as I can’t find an advanced menu in those screens… )?