Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
junsarah3000
Frequent Visitor

How to get Power BI dataset in Power Automate triggered by an email?

 
2 ACCEPTED SOLUTIONS
junsarah3000
Frequent Visitor

Thanks but I want to get the dataset. The 3rd action is to email a particular table contents with employees email from that dataset. Power BI dynamic contents are not appearing as selection.

View solution in original post

edhans
Super User
Super User

You will have to create a DAX query, probably in DAX Studio, then use the Run a query against a dataset. It will return a table you will need to parse out and do what you want. Getting the table is easy. Parsing it out is probably a trip to the Power Automate forum to get help on that piece.

 

Note that your query text must start with EVALUATE. 

If you don't know how to write DAX queries, you can start here. DAX Queries - DAX | Microsoft Learn

There is no click/select/browse or any graphical representation of the dataset to get what you want. You have to use DAX queries to get the data. 

edhans_0-1677017757828.png

 



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

View solution in original post

5 REPLIES 5
edhans
Super User
Super User

You will have to create a DAX query, probably in DAX Studio, then use the Run a query against a dataset. It will return a table you will need to parse out and do what you want. Getting the table is easy. Parsing it out is probably a trip to the Power Automate forum to get help on that piece.

 

Note that your query text must start with EVALUATE. 

If you don't know how to write DAX queries, you can start here. DAX Queries - DAX | Microsoft Learn

There is no click/select/browse or any graphical representation of the dataset to get what you want. You have to use DAX queries to get the data. 

edhans_0-1677017757828.png

 



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting
junsarah3000
Frequent Visitor

Thanks but I want to get the dataset. The 3rd action is to email a particular table contents with employees email from that dataset. Power BI dynamic contents are not appearing as selection.

edhans
Super User
Super User

1. Create an Email trigger. This is an Office 365 email. Just set up the criteria.

edhans_0-1677016007767.png

2. Add an action to refresh a power bi dataset.

edhans_1-1677016066882.png

 

That is it. 2 steps.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Run a query is successful! Is the 4th action "Export to File for Power BI Reports" correct? 

 

junsarah3000_0-1677018859581.png

 

Export to file will work but I am not sure the file format - likely CSV. You could then email that to whomever, but you cannot put the file content in the TO line... Kinda bothers me it allowed that. It should restrict that to text data, and the File Contents should be an object, unless "File Content" is some sort of text descriptor of the file type and there is another "File Contents" object to select.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.