Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
pitscompany
New Member

Dynamic small multiples grid layout auto‑adjust rows/columns based on number of categories?

Hi everyone,

I have a small multiples chart (line chart) where each small multiple is a vehicle that has temperature readings. I've already filtered out vehicles with no data using a measure (COUNTROWS > 0) in the visual‑level filters, so only vehicles with actual readings show up. That part works well.

My problem is the grid layout. The "Rows" and "Columns" under Format → Small multiples → Grid layout are fixed numbers. So if I set it to 2 rows × 5 columns, but a company only has 4 vehicles with temperature data, I get 4 charts plus a bunch of empty cells/rows.

What I want is a dynamic grid: if a company has 4 vehicles → show 4 charts (e.g. 1 row × 4 columns), if it has 1 vehicle → show just 1 chart, if it has 10 → expand accordingly — without empty placeholder cells. Basically the grid should resize itself based on the number of categories currently displayed.

My questions:

  1. Is there any native way to make the small multiples grid dimensions dynamic (driven by the count of categories), maybe via a measure or field parameter? So far it looks like Rows/Columns are static format settings only.
  2. If not native, is there a custom visual / library (AppSource or otherwise) that supports auto‑fitting/flowing small multiples based on the number of categories? 

    pitscompany_0-1781770266536.pngpitscompany_1-1781770285252.png

     

1 ACCEPTED SOLUTION
Bipin-Lala
Solution Sage
Solution Sage

Hi @pitscompany,

 

I think there is no native way to dynamically bind the Rows and Columns properties to a measure or field parameter. In native Power BI visuals, the Grid Layout dimensions for small multiples are hardcoded formatting properties that cannot accept conditional formatting (fx) inputs.

 

You can look into custom visuals like Deneb that allows you to build custom charts using Vega-Lite JSON specification.

 

Let me know if this helps! Feel free to reach out if any questions.

 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


Regards,

Bipin Lala | Business Intelligence Developer



View solution in original post

3 REPLIES 3
v-priyankata
Community Support
Community Support

Hi @pitscompany 

Thank you for reaching out to the Microsoft Fabric Forum Community.

@Bipin-Lala Thanks for the inputs.

I hope the information provided by user was helpful. If you still have questions, please don't hesitate to reach out to the community.

 

Hi @pitscompany 

Hope everything’s going smoothly on your end. I wanted to check if the issue got sorted. if you have any other issues please reach community.

 

Bipin-Lala
Solution Sage
Solution Sage

Hi @pitscompany,

 

I think there is no native way to dynamically bind the Rows and Columns properties to a measure or field parameter. In native Power BI visuals, the Grid Layout dimensions for small multiples are hardcoded formatting properties that cannot accept conditional formatting (fx) inputs.

 

You can look into custom visuals like Deneb that allows you to build custom charts using Vega-Lite JSON specification.

 

Let me know if this helps! Feel free to reach out if any questions.

 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


Regards,

Bipin Lala | Business Intelligence Developer



Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors