Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - General Discussion
Unanswered

Filter Query one column lt another

(0) ShareShare
ReportReport
Posted on by

Hi, 

 

I have one a list which has two number columns A and B. 

 

I want to get items by filter A < B. 

 

How can I generate the filter query sentence? 

 

Thanks!

Jack

  • v-qiaqi@microsoft.com Profile Picture
    on at
    Re: Filter Query one column lt another

    Hi @Anonymous,

    Do you mean that you want to compare a number column with another number column without Filter Array?

     

    I think there is no way to achieve this but the Filter Array in Power Automate.

    Since you want to compare one column with another column, it is necessary for you to loop through all the items, which is how Power Automate processes data.

  • Shuvam-rpa Profile Picture
    891 Super User 2024 Season 1 on at
    Re: Filter Query one column lt another

    @MarconettiMarco if you used it before, kindly share the query screenshot and the result after running the flow.

    at my end it show error.

  • MarconettiMarco Profile Picture
    3,812 Super User 2024 Season 1 on at
    Re: Filter Query one column lt another

    Hello @Anonymous ,

    directly in the “Get items” action you can use the filter query. If you already know di columns unique names, please use the filter query in advanced mode and type: <your_column1> lt <your_column2>.

     

    BR,

    Marco

  • Community Power Platform Member Profile Picture
    on at
    Re: Filter Query one column lt another

    Hi @Shuvam-rpa , 

     

    Yes, that's what I've done. But for the performance, I don't want to let it go through all items and waste the searching time. 

     

    Is there another way to achieve this?

     

    Thanks!

    Jack

  • Shuvam-rpa Profile Picture
    891 Super User 2024 Season 1 on at
    Re: Filter Query one column lt another

    @Anonymous As per my knowledge is it only be possible by first you get all items and then try to use filter array action to compare  A and B column from the list.

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. 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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1