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 Apps / Flow - Group and Filte...
Power Apps
Unanswered

Flow - Group and Filter - is it possible?

(0) ShareShare
ReportReport
Posted on by 514

I am very new to Sharepoint flows and trying to learn and implement functionality I use in other apps.


It does not appear that aggregate functions are available in flow right now so I wondered if it is possible to group and filter from a Sharepoint list?

 

For example if I have a list of cities:

 

Paris
London
Miami
London
Paris
Chicago
New York
Paris
Paris
Chicago
Paris
Chicago
Birmingham
Chicago
Manchester
Chicago


I would want to group by city and count the number in
each group. If it were 5 or more in any grouping I would need to
update each of those records Y/N field as Y.

 

In this case there would be a grouping on 'Paris' as having 5 or more entries and also Chicago.

 

I am thinking though this may be easier to do in SQL Server using
stored procedures.

 

Any help greatly appreciated.

Categories:
I have the same question (0)
  • timl Profile Picture
    37,212 Super User 2026 Season 1 on at

    Hi @sienna28

     

    If you can access your data through SQL Server, my preferred choice would be to use SQL Server. Like you say, you can build a stored procedure, but you could also create a view. With a view, you could quite easily view your results from PowerApps.

    With Flow, I suspect you could accomplish this though a combination of looping through your input data, using variables to store a count for each city, conditions to check for a count of greater than 5 for any given city, and an array to store the results.

    Although the article beneath doesn't carry out exactly what you want, I think it gives a gist of how you could carry this task.

    https://flow.microsoft.com/en-us/blog/calculate-running-totals-and-tracking-maximum-values-in-flow/

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 421

#2
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 278 Super User 2026 Season 1

Last 30 days Overall leaderboard