Forum Discussion

yuanyangEnext's avatar
yuanyangEnext
New Member
6 years ago
Solved

How to export data from a Power BI Desktop to Excel OR CSV With Power Shell

Hello Everyone,


I want to export data from Power BI Desktop model to Excel OR CSV files.


Following the link shown below, we can manually Copy (Ctrl+C)Data from Data View in Power BI Desktop and then Paste (Ctrl+V) it to Destination like Excel and save it as CSV file.

https://www.biinsight.com/exporting-data-from-power-bi-desktop-to-excel-and-csv-part-1-copy-paste-and-dax-studio-methods


Is there a way to automatically Export data from PBI Desktop to Excel(CSV) With Script Like Power Shell?

8 Replies

  • I think we can install the personal gateway to run the RScript on any VM and then auto-schedule the data set to refresh in power BI service,  this way the data will be auto exported in an excel or CSV format.  

    • marc_frei's avatar
      marc_frei
      Icon for Helper I rankHelper I

      thanks for your response. This is very clear to me. However with the R Script i can only export a Power Query Table to a csv but not values from a a Table (Visuals) with calculated DAX Measures e.g.

      This works with PowerAutomate but just with a manual trigger.