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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.