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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Conditionals within a ...
Power Automate
Answered

Conditionals within a filter to retrieve relevant rows from excel doc

(0) ShareShare
ReportReport
Posted on by 10

Hi all, I'm modifying one of my existing flows and was curious if we can insert an OR condition into a filter. Previously my code looked like this which has worked fine:

 

@equals(item()?['Col1Example'], 'X')

 

Now I'm hoping to add the conditional without the need to branch off and retrieve the result, similar to this (which doesn't work):

 

@equals(item()?['Col1Example'], 'X') OR @equals(item()?['Col1Example'], 'Y')

 

Any thoughts or suggestions? Thanks!

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    on at

    Hi @Bernard89 ,

     

    You can use a Filter array Control and filter on multiple conditions:

    vjefferni_0-1659077213628.png

     

    Best regards,

  • Verified answer
    Bernard89 Profile Picture
    10 on at

    Thanks, I was mostly looking for help to understand how to approach writing the conditional. I've got it sorted out now:

     

    @Anonymous(equals(item()?['X'], 'Y')
    ,equals(item()?['X', 'Z'))

     

    Starting with the OR and removing the @ before each requirement.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard