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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
ldwf
Helper V
Helper V

Alerts with attachments - Use Power BI with Power Automate or Power BI with Power Automate

I need to build a process that runs daily that would send out an alert email and contain an Excel attachment of the detail records that meet the criteria for the alert, like all invoices past due 10 days for example.  I have never used the alert feature, and I don't know if it exists in Report Builder.  I should probably use Power Automate to do this, but wondering if it would be best to use it with Power BI or Report Builder?  Any thoughs on how to best do this

1 ACCEPTED SOLUTION
mh2587
Super User
Super User

  • Use Power Automate for scheduling and sending emails — it’s purpose-built for automation and integrates well with both Power BI and SQL Server.
  • If your data resides in SQL Server or another database, build a stored procedure or query that returns the alert dataset (e.g., invoices past due 10 days).
  • Use Power Automate to run this query daily using the “SQL Server – Get rows” or “Execute a SQL query” action.
  • Convert the result to an Excel file using the “Create CSV table” → “Create file” → “Convert to Excel” (optional) steps.
  • Attach the generated Excel file to an Outlook “Send an email (V2)” action.
  • If your data is already modeled in Power BI, you can use a Power BI dataset as the data source, but exporting detailed records from Power BI into Excel is less flexible than querying SQL directly.
  • Report Builder (SSRS) can schedule subscriptions and send reports as attachments, but it requires SQL Server Reporting Services configured with email delivery permissions — less flexible than Power Automate for dynamic logic or cloud-based alerts.
  • Recommended setup: SQL query + Power Automate flow (daily trigger) + email with Excel attachment.
  • Optional enhancement: include threshold logic in Power Automate (e.g., only send the email if records exist that meet the alert condition).

✔ Answered? Mark as solution

Muhammad Hasnain | Super User • Fabric • Power BI • Data Engineering

Let's connect on LinkedIn

View solution in original post

2 REPLIES 2
v-karpurapud
Community Support
Community Support

Hi @ldwf 

Thanks for reaching out to the Microsoft fabric community forum. 

 

I would also take a moment to thank  @mh2587  for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.

I hope the below details help you fix the issue. If you still have any questions or need more help, feel free to reach out. We’re always here to support you 

 

 

Best Regards, 
Community Support Team .

mh2587
Super User
Super User

  • Use Power Automate for scheduling and sending emails — it’s purpose-built for automation and integrates well with both Power BI and SQL Server.
  • If your data resides in SQL Server or another database, build a stored procedure or query that returns the alert dataset (e.g., invoices past due 10 days).
  • Use Power Automate to run this query daily using the “SQL Server – Get rows” or “Execute a SQL query” action.
  • Convert the result to an Excel file using the “Create CSV table” → “Create file” → “Convert to Excel” (optional) steps.
  • Attach the generated Excel file to an Outlook “Send an email (V2)” action.
  • If your data is already modeled in Power BI, you can use a Power BI dataset as the data source, but exporting detailed records from Power BI into Excel is less flexible than querying SQL directly.
  • Report Builder (SSRS) can schedule subscriptions and send reports as attachments, but it requires SQL Server Reporting Services configured with email delivery permissions — less flexible than Power Automate for dynamic logic or cloud-based alerts.
  • Recommended setup: SQL query + Power Automate flow (daily trigger) + email with Excel attachment.
  • Optional enhancement: include threshold logic in Power Automate (e.g., only send the email if records exist that meet the alert condition).

✔ Answered? Mark as solution

Muhammad Hasnain | Super User • Fabric • Power BI • Data Engineering

Let's connect on LinkedIn

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.