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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
diouckdiouck
Frequent Visitor

sidebar that grows vertically (Align containers)

I am working on a power BI Paginated Report in Report builder:

I have got 2 Rectanges (containers). The main container is in yellow. It contains 3 textboxes, a table and the red container. then there is the red container (which is inside the yellow container) that contains an image and a textbox in purple.

diouckdiouck_0-1733305621738.png

I want the red container to be aligned with the yellow one. It needs to grow vertically and dynamically depending on the table and the textboxes sizes. As you can see circled in the image below the red container does not grow vertically and dynamically (it needs to fill the space circled in blue) alongside the table and textboxes with expressions.

diouckdiouck_1-1733305829749.png

 

how can I make the red container the same height as the yellow one dynamically ? Basically my main goal for the red container is to act like a side bar.

 

Keep in mind that I am using multiple datasets and I will use multiple tables.

 

Thank you for your help in advance.

 

 

2 REPLIES 2
Anonymous
Not applicable

Hi, @diouckdiouck 

Select the red container.
In the Properties pane, set CanGrow to True. Locate the Height property. Use the following expression to set the Height property:

=ReportItems! YellowContainer.Height

This expression ensures that the height of the red container matches the height of the yellow container.
Make sure that the yellow container and its contents (text boxes, tables) are set to grow dynamically. Set their CanGrow property to True.
If you have multiple tables or datasets, group them appropriately. Set the RepeatWith property of the red container to the primary table or text box inside the yellow container.

 

How to Get Your Question Answered Quickly

Best Regards

Yongkang Hua

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I can't find the cangrow property for the rectangle. I thought this property was only available for textboxes ?

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.