Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered
Power BI can connect to, transform and visualise data. Which is great but how do we get that modified data out?
One way is using a Power Automate flow to connect to the published Power BI dataset.
Take this Power BI table visual, I want to extract this data.
First thing we need is to extract the DAX behind the visual. To do this go to View | Performance analyzer and toggle this on.
When you click Performance analyzer a new pane will appear on the right.
The analyzer lets you see information about each visual on the page like load times. Click on Refresh visuals button.
Clicking Refresh visuals loads all visuals on the current page.
Click on the + icon by the table visual and choose Copy Query to add the DAX code to your clipboard.
We now have the code Power BI uses to generate the visual.
Now we can open Power Automate in the browser and create a flow to extract the data using the copied script.
Create a new flow by clicking on New flow | Instant cloud flow.
You can choose from several triggers but here we will choose Instant cloud flow.
Give your flow a suitable name and choose Manually trigger a flow to create your new flow.
Manually triggered flows run when you choose but there are other options.
This will open up your designer where you create all the steps of the flow. Click on the + to add a new step.
Choose Add an action to see a list of the available options.
Search for Run a query against a dataset and you should see it under the heading Power BI.
We want to run the query copied earlier.
Select the Workspace and Dataset of your published report, then paste the code from your clipboard into Query Text.
Power Automate will run the code against the specified dataset.
Now in the top right choose Save and then click on Test to run your flow.
You must save before selecting the Test option.
If you have run this flow before, you can choose Automatically to re-run with previous data.
For now choose Manually and select Test to try your new flow.
You can run the flow by clicking Test.
We should now see each step with a tick next to it. You can now select the Power BI step to see the returned data.
Click on the last step to see more information.
Each step has an Inputs and Outputs section and by choosing Show raw outputs we can see our data.
Clicking here will show you a JSON file of the returned information.
Now you can see all the returned data in the body section of the output.
The headers section includes useful information like run Date.
From here we can put this data into a CSV table.
Use Create HTML table to include in the body of the email or CSV as an attachment.
To include the data click on the lighting bolt to add dynamic content and choose First table rows.
You could run this step multiple times to attach more than 1 file.
Now we can add the final step: Send an email (V2)
Here I am using the Office 365 Outlook connector.
To include this file as an attachment expand the Advanced parameters section.
We want to choose Attachments, this could do all the CSV files at once.
Last step is to choose the Output of the Create CSV table step as the Content.
If using HTML table the output can go directly into the Body of the email.
Fill in the remaining fields and give this a run and enjoy your lovely email.
Maybe spend more time on the Body and Subject sections...
I hope this helped and you keep enjoying the Power BI experience!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.