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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Exporting Multiple Rep...
Power Automate
Unanswered

Exporting Multiple Reports from one dataset using a filter (cost centre) & also sending an email of the exports to the relevent personnel

(0) ShareShare
ReportReport
Posted on by 79

Hello, I have a client that has a request that sounds simple but is proving very difficult to implement in Power Automate. 

Essentially the client wants to export a payroll report for EVERY cost center every 2 weeks, save each of the exports down in a location separately & finally, send an email to the Cost Centre Managers with the exports attached. Only certain Managers can view certain reports so this also needs to be dynamic in the flow. 

I cannot find a solution anywhere on youtube, does anyone know if this possible? The bit I am struggling with, is filtering the export to only show data for each specific Cost Centre. I am not that experienced with Power Automate so could be missing something. Thanks Guys. 🙂

Categories:
I have the same question (0)
  • lbendlin Profile Picture
    8,474 Super User 2025 Season 2 on at

    What is a "report"?  Excel, Power BI, something else?

  • Shaunbuckleyy12 Profile Picture
    79 on at

    Just excel is fine for the exported reports. its a really simple table with just some payroll data for staff.

    The ideal solution would be to connect to the database where the payroll data is stored into Power BI or Power Query in Excel if that is easier and then export the multiple excel reports from Power BI/Excel every 2 weeks using Power Automate. 

    I think I need to use the 'loop' and 'do until features' but not 100% sure how this works.

  • lbendlin Profile Picture
    8,474 Super User 2025 Season 2 on at

    You would create an array with your recipients and their filters. Then you iterate over the array and run the below action with the filters applied accordingly. Note: There is no Excel export option.

     

    lbendlin_0-1683764279247.png

    If you want Excel instead you would need to run a DAX query against the dataset and then stuff the results into an Excel file that you create on the fly.

    lbendlin_1-1683764393674.png

     

  • Shaunbuckleyy12 Profile Picture
    79 on at

    Yeh I was thinking I would need to use the run a query against the dataset but the area that I am really unclear on is the 1) how do I run the data to show everything for only a specific cost centre and 2) save down a cvs/excel of each of the different reports with the different cost centers. 

    I am also not too sure how to make sure I send the emails to the correct managers depending on the cost centre they manage too. 

    would you be free for a quick call tomorrow perhaps? Or when you are free to discuss? 

  • lbendlin Profile Picture
    8,474 Super User 2025 Season 2 on at

    Please remember this is a community forum where users help users.  If you need professional consultancy there are plenty of Microsoft partners available to assist you.

  • Shaunbuckleyy12 Profile Picture
    79 on at

    No problem lbendlin, will try and get in contact with one of them, thanks for your help 🙂

  • Shaunbuckleyy12 Profile Picture
    79 on at

    @lbendlin, been searching for help the past few days but the fees I am getting quoted are out of my client's budget. I wanted to ask you if you wouldn't mind having a quick look at the problem worded in a different way to see if it sounds like it may be an easy flow to create or if it is even possible (if you don't mind of course). 

    I think it is easier to understand what is required by me attaching the files. If you look at the 'Payroll Data - DCC Demo' file and the first tab specifically, this is how the Power BI Report will look, it will be a simple table containing all of the columns in that spreadsheet for the Payroll Data.

    I then want to export out similar excel/csv's to the 2 files I have also saved down which just filters all the data in the report by Cost Center and makes a separate file for each CC. For this example, I only included 2 CC's but in reality there is nearly 300 so I need Power Automate to create 300 separate files automatically (every 2 weeks). 

    Does it sound possible to you? 🙂

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard