cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

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
Highlighted
Community Support
Community Support

Re: Create Separate Excel Files Based on Field Value

 

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
Highlighted
Frequent Visitor

Re: Create Separate Excel Files Based on Field Value

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

Highlighted
Community Support
Community Support

Re: Create Separate Excel Files Based on Field Value

 

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

Highlighted
Frequent Visitor

Re: Create Separate Excel Files Based on Field Value

Thank you so much!! This was so helpful! 

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (7,636)