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 / Need help in Filter Array
Power Automate
Answered

Need help in Filter Array

(0) ShareShare
ReportReport
Posted on by 2

Hi All,

I have excel column name is Department and the values is multiple for eg:(IT,Computer Science Engineering,EEE,Data Science)

I need to select only Computer Science and Data Science in the department column. I'm not able to use the filter query in list rows action since its excel we would be able to filter 1 value so i used the filter array

 

@And(equals(item()?['Department'],'Computer Science'),equals(item()?['Department'],'Data Science'))

this will shows me the result is empty array [ ]. I tried running this as separate and i'm able to get the value. If i want to select both values for 1 column how to do this please help me.

 

Thanks.

 

Categories:
I have the same question (0)
  • Verified answer
    Manish Solanki Profile Picture
    15,169 Moderator on at

    Hi @Priyanka03 

     

    Pls try the below expression to get the desired filter result. The idea is check if the sub string exists in the column value:

    @and(greater(indexOf(item()?['Department'], 'Data Science'), 0),greater(indexOf(item()?['Department'], 'Computer Science'), 0))

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

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 Automate

#1
Valantis Profile Picture

Valantis 427

#2
Vish WR Profile Picture

Vish WR 316

#3
David_MA Profile Picture

David_MA 260 Super User 2026 Season 1

Last 30 days Overall leaderboard