Forum Discussion

analyticsrookie's avatar
analyticsrookie
New Member
1 year ago
Solved

Automatically Convert PowerBI file to PDF with Pro License

Hi everyone, I have a Pro license in my organization. Without upgrading to a Premium license, is there a way to automate the process of converting my Power BI files to PDFs using Power Automate or Python? Currently, I open my file, press Ctrl+P, and save it as a PDF manually. I’m looking for an easier solution. All the posts I found online use a Premium license. I need a solution for this.

  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi analyticsrookie ,

     

    Please try report Subscription and Flow.

    Reports under the pro license can only be exported as image previews instead of PDF.

    So we can use flow to convert images into pdf.

    Sample:

    If you have 2 pages in the report, then you need to create two subscriptions. The first subscription is for previewing the first page and the second subscription is for previewing the second page.

     

    Best Regards,

    Wearsky

9 Replies

    • analyticsrookie's avatar
      analyticsrookie
      New Member

      My DAX codes in the Power BI files change frequently, and publishing them takes a lot of time because I have to follow my company's protocols. Is there a way to automate the PDF conversion process from my local or personal workspace?

       

      • Kaviraj11's avatar
        Kaviraj11
        Solution Sage

        Yes, you can subscribe the reports in your own (my workspace)

  • Hello analyticsrookie ,

     

    Yes, It can be done using power automate(with pro ) and python.

     

    A) Using Power Automate :

        1. Open Power Automate and create a new scheduled or instant flow.

         2.Use the "Power BI - Export to File for Power BI Reports" action.

        3. Choose the workspace, report, and page you want to export.

        4. For file format, select PDF.

        5.Add a step to save the file to OneDrive, SharePoint, or send via email.

     

    your flow will look like 

    Make sure to set proper connections and parameters along with schedule:

     

     

    This will work only in Power BI Service not in desktop

     

    Using Python

    You can write custom python code to achieve the same 

     

    I hope this helps .

     

    Did I answer your query ? Please merk this as solution . Appreciate your Kudos 🙂

     

    Cheers

    • analyticsrookie's avatar
      analyticsrookie
      New Member

      I actually tried this and got the below mentioned error

      I think we might need premium for it

    • analyticsrookie's avatar
      analyticsrookie
      New Member

      So I cannot automate the conversion to a PDF file from my local with a Pro License right?

       

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi analyticsrookie ,

     

    Please try report Subscription and Flow.

    Reports under the pro license can only be exported as image previews instead of PDF.

    So we can use flow to convert images into pdf.

    Sample:

    If you have 2 pages in the report, then you need to create two subscriptions. The first subscription is for previewing the first page and the second subscription is for previewing the second page.

     

    Best Regards,

    Wearsky