Forum Discussion

Yggdrasill's avatar
Yggdrasill
Responsive Resident
1 year ago

Power BI Embedded and Export Current Layout to Excel

We're using Matrix visuals to represent numbers over time with dimensions on Rows and Year-Month on Columns.

The request from our client is to have a "Excel" button where the users can download the data from the Matrix visual but to have it in Excel and in the same format as the user sees on the screen. That is, hiearchical structure with time on columns.

The problem is, Current Layout doesn't seem to be supported? 

Does the community have any tips and or tricks regarding this dilemma?

Kindest


3 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi,Yggdrasill 

    Your idea is excellent! Power BI now supports your requirement; you simply need to click on the three dots in the top right corner of the matrix visual to access this functionality.

    Once there, select the option to maintain the current page layout:

    My sample data is as follows:

    Here are the final results after opening Excel:

    For further details, please refer to:

    Export data from a Power BI visualization - Power BI | Microsoft Learn

     

    Of course, you can also consider using the API to achieve this requirement:

    For more information, please refer to:

     How to use Power BI Rest API to export the Power B... - Microsoft Fabric Community

    Of course, if you have any new discoveries or questions, please feel free to get in touch with us.
     

    Best Regards,

    Leroy Lu

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

  • Yggdrasill's avatar
    Yggdrasill
    Responsive Resident

    Thanks for the reply but I knew about the 3-dots and export option but I do not want that. 

     

    I need to be able to do the exact same thing but via API request so I can create a button that does what you described. 

     

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi, Yggdrasill 

      Your idea is excellent; however, at present, the export API does not support exporting standard reports directly to CSV, and your requirements also include preserving the current layout.

      Below is a screenshot of the relevant documentation:

      For further details, please refer to:

      Reports - Export Report In Group - REST API (Power BI Power BI REST APIs) | Microsoft Learn

       

      The current alternative is to use the export solution I mentioned previously:

       

      If you feel that performance needs to be improved, you can also submit an idea on

      https://ideas.fabric.microsoft.com/ and wait for users with the same needs as you to vote for you and help you realize the idea as soon as possible. Many features of our current products are designed and upgraded bed on customers’ feedback.  With requirements like this increase, the problem may well be released in the future.

       

      Thanks for your understanding.

       

      Best Regards,

      Leroy Lu

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