Buttons to Switch Metrics within a Tile

I have a heatmap showing change in sales relative to a specific time period. At the moment i have 3 separate heatmaps showing the MoM change, QoQ change, and YoY change.

Is there a way I can create buttons for users to switch between the 3 comparison periods on 1 heatmap?

Hi @jaziz , I think using a parameter which can be used as a filter for your visualisation may help.

For example, the below LookML gives month, quarter and year as options for a parameter and when used as a filter for a viz on the front-end, can toggle the relevant date granularity to be included:

Sample LookML: