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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Galat198
Helper IV
Helper IV

Dynamic page hide

Hi,
I have a report that I export in PDF
By filtering in the filter I have a different amount of pages
That means there is a report with 7 full pages and there are reports with 2 pages
So when I export a 2-page report to PDF then the other 5 pages remain blank, but see them in PDF as a blank page

Is there a way to dynamically hide blank pages? Or hide pages dynamically even before exporting to PDF when there is no data on a particular page?

5 REPLIES 5
v-xulin-mstf
Community Support
Community Support

Hi @Galat198,

 

Maybe you can use the following method to hide blank pages, but it doesn't work dynamically:

What is your requirement for 'dynamically'? Please details.

Step1: Set Bookmark pane

v-xulin-mstf_0-1611133421811.png

 

Step2: View the bookmarks

v-xulin-mstf_1-1611133421813.png

 

Step3: Export to PDF

v-xulin-mstf_2-1611133421815.png

 

Here is the output:

v-xulin-mstf_3-1611133421817.png

 

If you want to learn more, please refer:
https://docs.microsoft.com/en-us/power-bi/desktop-bookmarks

 

Best Regards,

Link

@v-xulin-mstf 
What is your requirement for 'dynamically'? Please details.

When there is no data on the page (e.g. sales amount = 0 and then a chart will be blank) then one should hide a page and not attach it in PDF printing.

Hi @Galat198,

It's not supported now, you can summint an idea: https://ideas.powerbi.com/ideas/

You can use the above method when you have a small number of pages.

Best Regards,

Link

Hi @Galat198 ,

 

can you provide more info?

Are you using Power BI Premium and exporting from the Power BI service?

Then you could possibly control the export via PowerAutomate.

https://docs.microsoft.com/en-us/power-bi/collaborate-share/service-automate-power-bi-report-export

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


@mwegener 
No, unfortunately, I do not have a Power BI Premium
Just Power BI Pro account.
So, PowerAutomate can't help here...:(

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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