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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Filter SharePoint List...
Power Automate
Answered

Filter SharePoint List and Create Multiple CSV Files

(0) ShareShare
ReportReport
Posted on by 46

Hey PowerAutomate Community!

 

I've not been able to get this to work as intended and was hoping to get some help from you all.

 

I have a SP list and would like to filter a column and then create multiple CSV files using the filtered content. In the example below, I'd like to grab all the As, Bs, and Cs and then create a CSV for each group of As, Bs, and Cs.

 

IDNameDepartment
1JaneA
2JoeA
3RobC
4DanB
5MarkB
6TinaC

 

Many thanks in advance for all of your support!

Categories:
I have the same question (0)
  • Verified answer
    Slowpoke Profile Picture
    157 on at

    Hi,

    In this link, it shows how to to do a group by with power automate:
    http://johnliu.net/blog/2018/6/do-group-by-in-flow-with-two-simple-elegant-loops

    So, if you want to create a csv table of each department, you will just have to change the "create an html table" part.

    And if you just want to filter specific department, you can still inspire yourself from the flow shown in the link.

    If I have answered your question, please mark the post as Solved.
    If you like my response, please give it a Thumbs Up.





  • loepan Profile Picture
    46 on at

    Hey!

     

    Thanks for sharing and the support. I was able to get it to work using the link that you shared. A few things to note for anyone trying to do the same:

    • The article has you add a Select after Filter Array. It doesn't state explicitly but you need to add an expression when mapping the value of item()?['Title']. The image suggests that it's Dynamic Content from Filter Array
    • For the above, I ended up using expressions to select only the content that I wanted from the array, which organized the data neatly for the CSV file.
    • For my purposes, it was a bit different from the article. I used append to array variable, then parsed JSON for 'items' and created an automatic CSV from the results. It worked perfectly.

    Screen Shot 2022-08-18 at 15.14.42.png

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 Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 607

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard