web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

Send Automation Email using Power Automate in Power BI (Accumulate achievement Data)

(4) ShareShare
ReportReport
Posted on by 8
Hey all, 
 
I want to create an automation email for may sales team dashboard (have thousands of rows with distinct name) and send it monthly after we got the number of the month achievement. I already have a basic flow using the template and it works (when I click the trigger, each salesman got their only achievement since the data is sensitive I have to ensure each salesman only got their numbers). 

However, now the head of sales team wanted me to create the email for the upcoming month to be accumulated,
for example, 

the current email is something like this, 
 

Dear Name,

Here are your Achievement in the Month of January,

Month GWP
1 7,500
I have the same question (0)
  • Suggested answer
    Inogic Profile Picture
    748 on at
    Hi,
     
    Steps to Update Your Flow
    1. Use "List rows present in a table" (Excel, or from SharePoint/Dataverse if used)
    2. Initialize a variable of type Array to store filtered GWP data for each salesperson.
    3. Apply to each: Group data by distinct salesperson (e.g., using Union() trick or by using Dataverse distinct).
    4. Inside each salesperson loop:
    • Use "Filter array" to get all rows where Name == current salesperson AND Month <= current month.
    • Initialize a string variable htmlTable and build the HTML table like this:
    <table border="1" style="border-collapse: collapse;">
    <tr><th>Month</th><th>GWP</th></tr>
    Then loop through filtered results and append rows:
    <tr><td>@{items('Apply_to_each_row')?['Month']}</td><td>@{items('Apply_to_each_row')?['GWP']}</td></tr>
    Close it with:</table>
    5. Send an email
    Use the "Send an email (V2)" action and insert:
    Dear @{currentSalesperson},

    Here are your Achievements Month-to-Date for @{utcNow('MMMM')}:

    @{variables('htmlTable')}
     
    Hope this helps.
     
    Thanks!
    Inogic

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
11manish Profile Picture

11manish 174

#2
ManoVerse Profile Picture

ManoVerse 58 Super User 2026 Season 1

#3
Niki Patel Profile Picture

Niki Patel 42

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans