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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Pedro_Ziggy
Regular Visitor

[Power BI Report Builder] - Empty/white spaces in the report when an object is hidden

Hello Community,

Description of the problem: I am working on a paginated report in which some objects (tablix / textboxes) have logic for hiding and showing themselves. The problem is that when an object is hidden, it leaves an empty space that looks unprofessional when generating to PDF (the document stretches unnecessarily).


Example:

Pedro_Ziggy_0-1718317152271.png


Result:

Pedro_Ziggy_1-1718317218933.png


My question: how to reduce white spaces while maintaining the logic of hiding tablixes/textboxes (later in the report I got more of the same situations).


Alternatives (internet research): breaking the report into smaller ones that will precisely cover specific cases for specific regions or using sub-reports (it will be very difficult to maintain it..).

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Pedro_Ziggy ,

To reduce white spaces while maintaining the logic for hiding objects, consider the following approach:

This property allows you to control whether to preserve or eliminate white space at the end of a report. Setting this property to `True` can help reduce the white spaces caused by hidden objects.

Troubleshoot paginated report execution issues - Power BI | Microsoft Learn

 

Placing the objects you might hide/show within rectangles can help manage the layout more effectively. Rectangles can serve as containers that group items together, and when items within a rectangle are hidden, the rectangle can help in reducing the white space.

Empty and null data points in Power BI paginated report charts - Power BI | Microsoft Learn

Add empty points to a chart in Power BI paginated report - Power BI | Microsoft Learn

 

Best Regards
Community Support Team _ Rongtie

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

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Pedro_Ziggy ,

To reduce white spaces while maintaining the logic for hiding objects, consider the following approach:

This property allows you to control whether to preserve or eliminate white space at the end of a report. Setting this property to `True` can help reduce the white spaces caused by hidden objects.

Troubleshoot paginated report execution issues - Power BI | Microsoft Learn

 

Placing the objects you might hide/show within rectangles can help manage the layout more effectively. Rectangles can serve as containers that group items together, and when items within a rectangle are hidden, the rectangle can help in reducing the white space.

Empty and null data points in Power BI paginated report charts - Power BI | Microsoft Learn

Add empty points to a chart in Power BI paginated report - Power BI | Microsoft Learn

 

Best Regards
Community Support Team _ Rongtie

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

Hi @Anonymous, 
Thank you for your contribution.

EDIT: Using a rectangle and grouping, adding individual objects inside it + using an expression on the rectangle to hide/show solved the problem.

Many thanks!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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