The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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.
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.
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.
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 ?
User | Count |
---|---|
3 | |
3 | |
2 | |
1 | |
1 |
User | Count |
---|---|
4 | |
3 | |
3 | |
2 | |
2 |