Forum Discussion

Cheetah's avatar
Cheetah
Helper I
4 years ago

Dynamically change small multiple layout

Hi All,

 

Is there a way to change the small multiple layout (number of rows and columns in the visual) dynamically?

 

The case is:  after user doing a slicing of the data by using a slicer visual, the sliced data is shown in a bar chart visual. Depending on the number of unique values in the "small multiple" included in the sliced data, the small multiple layout of the bar chart should be adjusted accordingly.
E.g. if I set the "small multiple" to be the "observation" column in the data, and after the user-slicing the sliced data has 4 observations, then the bar chart small multiple layout should be accordingly set to of two rows and two columns.   

How should one achieve this in PowerBI --- if necessary, by using DAX?

 

Thanks!

 

Cheetah