Total history import rows dynamic