Using variables for pivot tables (cohort analysis)

Hi! How can I use variables for pivot tables? Just to have a chance to choose a value from the list, and not to create a few similar tables for different metrics

Not sure I understand the question here?