substitute criterias and variables in pivot title