Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Suggested answer

Create custom excel tables from a general excel table

(1) ShareShare
ReportReport
Posted on by 52
Hi group:
I have an excel table (.xlsx) of customers as a datasource, that I generate weekly with the fields
customer ID
customer name
address
Bank account
sale amount
.
How could I, with Power Automate, create and save a excel file with specific data from each customer from my source table?
 
File name must identify each customer since it contains their data
 

Thanks in advance
  • NsL Coder Profile Picture
    469 Super User 2025 Season 1 on at
    Create custom excel tables from a general excel table
    the table you have doesn't really have a "true" identifier for customer, as customer name is rarely unique. There are likely thousands of John Smith out there.
     
    That said, let me assume customer name is unquie. What I would do is:
    1. list rows of a table but only get output for the customer name
    2. use union() expression on the array of customer name that is returned, this will create an unique list of customer name
    3. apply to each unique customer name
      1. list rows of a table filter by customer name column of the customer name in the loop
      2. save the returned data (all for 1 customer name) to a new excel file
        1. there are 2 ways you can do this, ONE slow, which is add 1 record/row at a time
          OR
        2. use Graph API to save all records to the excel file at once
     
  • Suggested answer
    Xfiles1231 Profile Picture
    4 on at
    Create custom excel tables from a general excel table
    What I do is:
    1. List the rows of a table: with this you save them in a matrix variable and you do a validation to know if the client is already added, if not you add it.
    2. Apply to each of the values ​​of the matrix and obtain the rows of each client with all their data
    2.1 You must have the template excel file ready with which you will enter all the client's data
    2.2 you save it in a route with the name of the client
    and so on.
    Forgive my English, I'm using Google Translate.

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >