cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper I
Helper I

Create Separate Excel Files Based on Field Value

Hi everyone!

 

I'm just starting to get my feet wet with Microsoft Flow! It's exciting, but I need some advice! Can you seasoned Flow users offer a newbie some advice/point me in the right direction?

My goal is to read in an Excel file and split it into multiple Excel files based on the Location field. For my sample data below, I'd like to generate 3 files - one for Los Angeles, one for San Diego, and one for Santa Ana. 
Sample Data.PNG

 

 

 

 

 

 

So far, I've been able to use Filter Array for one city at a time, but how can I change this to dynamically filter for each city name? 

Here's my flow so far: 

Flow 1.PNG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Also, my Create File step generates a file, but I receive a "Couldn't Open the Workbook" message. How can I configure the Create File step to fix this issue?

Flow 2.PNG

1 ACCEPTED SOLUTION

Accepted Solutions

 

Hi @gemma ,

 

Please try to use the following methods to configure the Flow.

26.PNG

Details of Apply to each 2:

27.PNG

You may need to set the extension of the file to .xls. After testing, if you set extension to .xlsx, the file cannot be opened.

 

In addition, even if the file is set to .xls, some errors may occur, but you can ignore these errors and open the file. Then format the data in the Excel sheet into a table.

MS Flow does not seem to support such features at the moment, so only these parts can be implemented.

Please take a try.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Helper I
Helper I

Hi friends! I just wanted to bump so my question doesn't get lost! ❤️ I super appreciate your help! 

 

Hi @gemma ,

 

Please try to use the following methods to configure the Flow.

26.PNG

Details of Apply to each 2:

27.PNG

You may need to set the extension of the file to .xls. After testing, if you set extension to .xlsx, the file cannot be opened.

 

In addition, even if the file is set to .xls, some errors may occur, but you can ignore these errors and open the file. Then format the data in the Excel sheet into a table.

MS Flow does not seem to support such features at the moment, so only these parts can be implemented.

Please take a try.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Thank you so much!! This was so helpful! 

Helpful resources

Announcements
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Users online (6,510)