Is the Q1 data coming from date field or string field?
If it is coming from date field, drag that field rows or columns section, Click on Quarter you will get the data according to quarter of the date column. Expand/collapse appear on the viz by which you can click.
Please let me know in case of any issues. Please mark this answer as helpful and correct answer if it resolves your question.
This gif helped me do what I require. One thing I wanted to check is if it possible to have a +/- sign against each quarter so when I click on + for Q1, only Jan-Mar should expand. If there is a way, let me know else.