'Expand/collapse buttons for measures in power bi

I have a matrix visual where I am showing different different measures across multiple year. I am not able to use expand/collapse option in power bi if I am using measures. I can use expand collapse button in case of any dimension field but not in case of fact/measure.

Is there is any workaround for measures to show as expand/collapse?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source