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 / ODATA filter and opera...
Power Automate
Unanswered

ODATA filter and operators for multiple filters

(0) ShareShare
ReportReport
Posted on by 26

Hi community,

 

I'm having trouble making work the ODATA filter with a "and" or "or" operator in the "List rows in excel". When I use a single filter (without "and" or "or") everything works smoothly. As soon as I use an operator to filtering based on two conditions I got an error (screen capture here below). I have tried all possible ways (with parenthesis, etc) but nothing seems to work. 

 

Figure 01: ODATA filter with operator

Julianveda_0-1707980629437.png

 

 

Figure 02: Error details

Julianveda_1-1707900205167.png

 

 

I found a way around this by duplicating my flow and therefore having one flow for each filter. However, this is not ideal in the case I have to add more filters.

 

Figure 03: workaround (double the steps to use one filter by step)

Julianveda_2-1707900291541.png

 

Do you know if my ODATA filters is not working because I have some sort of version not supporting multiple filters as the error message seems to be telling me or if I am not doing things well ?

 

Also, would you have other proposals for working around this situation apart from the one I'm using (duplicating the steps) ?

 

Thank you for your help 🙂

Julian

Categories:
I have the same question (0)
  • Verified answer
    v-yueyun-msft Profile Picture
    on at

    Hi , @Julianveda 

    Currently Excel connector does not support multiple conditions in filter query. use filter array action after List row present in a table and use multiple conditions. 

    vyueyunmsft_0-1707901015693.png

     

    @or( equals(item()?['Header'], 'Media') , equals(item()?['Header'], 'Stdev') )

     

    If this reply can help you , you can click mark this reply as solution (Accept solution) which can help more people, thanks in advance! 

     

    Best Regards,

    Yueyun Zhang

     

  • Julianveda Profile Picture
    26 on at

    Hi @v-yueyun-msft ,

     

    Thank you for your answer. Unfortunately, I have also tried that and did not work. I explain here below what I get when using filter array:

     

    This is my workflow when adding filter array:

     

    Julianveda_0-1707902821508.png

     

    As soon as I run this, all the data is copied from the first table to the second table and not only the array I indicated in the "Filter array". I suppose this is happening due to the dynamic value "Value" in the "apply to each" that makes reference to the result from "List rows" intead of the result from "filter array".

     

    I tried therefore to modify this, by selecting a dynamic value that makes reference to the result from the "filter array". I have only two possibilities:

     

    Julianveda_1-1707903005465.png

     

    No matter if I choose Item or body, I get the same structure for the steps that follow (image below):

     

    Julianveda_2-1707903069637.png

     

    And when I run this, I get an error:

     

    Julianveda_3-1707903106476.png

     

     

    Am I missing something ?

     

    Thanks,

    Julian

     

  • Verified answer
    v-yueyun-msft Profile Picture
    on at

    Thanks for your quick response! According to your screenshot , your Filter query action run successfully in your side.

    You just need to loop the Body of the Filter query action.

    vyueyunmsft_0-1707958080148.jpeg

     

    If you want to extract the one of the field value , you can use the code in the each loop :

    item()?['fieldName']

     

    Best Regards,

    Yueyun Zhang

     

    Hi, @Julianveda 

  • Julianveda Profile Picture
    26 on at

    Thanks a lot @v-yueyun-msft 🙂

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard