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 if one column has 2 entries

(0) ShareShare
ReportReport
Posted on by 9

Is it possible to filter "Sharepoint - Get items" if there are less than 2 entries in a coloumn?

 

Atm no filter is set:

Div__0-1714026687690.png

Thanks in advance!

Categories:
I have the same question (0)
  • michalparal222 Profile Picture
    86 on at

    Hi,

    I now sure what you are asking about, but you can always filter the Output from Get Items, using the filter query.

     

    For example I need to find only records in Status column that are equal to Active:

    michalparal222_0-1714028473531.png

     

  • Div_ Profile Picture
    9 on at

    So basically in the red circle are two entries for the row "Owner". I want to filter it to only return entries that have less than 2 in it.

    Div__0-1714028951518.png

     

  • Verified answer
    michalparal222 Profile Picture
    86 on at

    You can use Filter array action to achieve that:

    1. This is the output from previous action Get Item

    2. Using the length function you will calculate the number of records (users) in Owner Column.

    The code: 

    length(item()?['Owner'])

    You just need to replace the Owner column name with your SharePoint internal column name. 

     

    michalparal222_1-1714030913721.png

     

    Then the output of the Filter array action are only the rows where there is only one owner. 

     

  • Div_ Profile Picture
    9 on at

    Yeah that's it, thank you! 🙂

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

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 248 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 204

#3
Haque Profile Picture

Haque 179

Last 30 days Overall leaderboard