Forum Discussion

linriss_nr's avatar
linriss_nr
Advocate I
4 years ago
Solved

Syntax for referencing Power BI data when adding a row to an excel table in Power Automate

Hello Power BI Community - I would appreciate your help on a problem that I'm struggling with.   I'm trying to set up a scheduled flow in Power Automate to query Power BI for some summary data once...
  • otravers's avatar
    4 years ago

    For the specific scenario of writing data from a Power BI dataset into an Excel spreadsheet, I probably wouldn't bother going via Power Automate and would use the dataset as a data source in Excel:

    https://docs.microsoft.com/en-us/power-bi/collaborate-share/service-connect-excel-power-bi-datasets

     

    In case you can't/don't want to do that, I was able to get the DAX query's data into Excel by parsing the JSON output of the dataset query. I did this twice in a row to first get the entire body of the response, then just the results. There's probably a more efficient way to do it but this is just a quick proof of concept.