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 / Filter Query one colum...
Power Automate
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

Categories:
I have the same question (0)
  • Shuvam-rpa Profile Picture
    891 Super User 2024 Season 1 on at

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

  • Community Power Platform Member Profile Picture
    on at

    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

  • MarconettiMarco Profile Picture
    3,812 Super User 2024 Season 1 on at

    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

  • Shuvam-rpa Profile Picture
    891 Super User 2024 Season 1 on at

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

    at my end it show error.

  • v-qiaqi@microsoft.com Profile Picture
    on at

    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.

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