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

Community site session details

Session Id : F7HIz8AM5Aex4mf0Y1mDhe
Power Automate - Building Flows
Unanswered

Flow is Not Handling Greater Than/Greater Than or Equals to Correctly

Like (0) ShareShare
ReportReport
Posted on 10 May 2024 18:34:43 by 21

I am new to Power Automate. I am working on a flow that has 4 conditions. The flow runs correctly however it does not seem to be adhering to the Greater Than condition. I have tried using quotes around the number and not using quotes. I have also tried doing "Greater Than 4" and "Greater Than or Equal to 5". Additionally, I have tried using int(5) as the value.

 

However, no matter what I have tried, the flow returns rows that have values less than 5. Can someone please explain what I am doing wrong when using this condition? 

 

Thanks

 

jpreziuso_0-1715365986377.png

 

  • jpreziuso Profile Picture
    21 on 10 May 2024 at 20:23:23
    Re: Flow is Not Handling Greater Than/Greater Than or Equals to Correctly

    Does the filter array need to be inside a "Apply to Each" action?

  • creativeopinion Profile Picture
    10,466 Super User 2025 Season 2 on 10 May 2024 at 19:54:30
    Re: Flow is Not Handling Greater Than/Greater Than or Equals to Correctly

    @jpreziuso

    Refer to this section of this YT tutorial for how to add multiple conditions to a Filter Array action. It's important to note the error here indicates that you are trying to use the is Greater or Equals operator to compare a string and a integer. 

     

    The is Greater or Equals operator can only be used to compare integers.

     

    creativeopinion_0-1715370911311.png

     

  • jpreziuso Profile Picture
    21 on 10 May 2024 at 19:34:30
    Re: Flow is Not Handling Greater Than/Greater Than or Equals to Correctly

    I was still using Condition. I am trying to add the List Rows Present in Table and Filter Array actions now. How do I use the Filter Array to add multiple filters to the results of the table?

  • creativeopinion Profile Picture
    10,466 Super User 2025 Season 2 on 10 May 2024 at 19:23:14
    Re: Flow is Not Handling Greater Than/Greater Than or Equals to Correctly

    @jpreziuso The Filter Array action and the Filter Query are two different things. The Filter Array action is used to filter out an array of items. The List Rows Present in a table action outputs an array of items.

     

    You would add the Filter Array action after the list rows present in a table action. 

    creativeopinion_0-1715368937872.png

     

    It's unclear where the error is coming from. Are you still using a Condition or have you switched to a Filter Array action? 

     

  • jpreziuso Profile Picture
    21 on 10 May 2024 at 19:20:20
    Re: Flow is Not Handling Greater Than/Greater Than or Equals to Correctly

    I am unsure how to use the filter array action since my output is not an array value? 

     

    I tried using the following filter query to remove empty rows

    jpreziuso_1-1715368735507.png

     

    But I received the following error when comparing Greater Than Or Equal to. Is it because the excel value is already an integer and I am trying to convert it again?

     

    jpreziuso_2-1715368811199.png

     

  • jpreziuso Profile Picture
    21 on 10 May 2024 at 19:09:41
    Re: Flow is Not Handling Greater Than/Greater Than or Equals to Correctly

    I have a step prior to the loop that reads the data table. I would like to put a filter query expression that would filter out any rows where the 'DaysSinceReturn' column is blank

     

    jpreziuso_0-1715368174138.png

     

  • creativeopinion Profile Picture
    10,466 Super User 2025 Season 2 on 10 May 2024 at 19:07:19
    Re: Flow is Not Handling Greater Than/Greater Than or Equals to Correctly

    @jpreziuso The List Rows Present in a Table action can only accept a single filter query. This means you can only filter on a single column. Your column names must not contain spaces. 

    ColumnName ne ''

    I would actually recommend not using the Condition action as you have since you are looping through every single row returned. Instead, you should use the Filter Array action to filter out the items first BEFORE looping through them. This is a lot more efficient. Although it may look like the Filter Array action can only take a single condition—it can take more than one. I cover how to add multiple conditions to a Filter Array action in the tutorial below.

     

    To learn more about how to use the Filter Array action, please refer to this YT Tutorial: Are you using the Microsoft Power Automate Filter Array Action wrong?

     

    In this video tutorial I’ll show you 3 practical ways to use the Filter Array action and how to use it properly.

    1️⃣ Cross-Referencing Data

    2️⃣ Filtering by Key

    3️⃣ Substring Matching

     

    Did you know that the Condition action has a limit of 10 conditions? Although it might look like the Filter Array action can only accept one condition—this is not true. By using the advanced mode you can enter multiple conditions into a Filter Array action with an expression.

    IN THIS VIDEO:

     3 Ways to Use the Filter Array Action

    How to use the Scope Action to Group Actions

    How to Check the Number of Items returned from a Filter Array Action

    How to Cross-Reference Data in Excel with a SharePoint List

     How the Filter Array Action Works

     How to Access the Dynamic Content from a Filter Array Action

     How to Filter Items by a Key

    How to Filter Items by Matching a Substring

    How to Use Multiple Conditions in a Filter Array Action

     

     

  • jpreziuso Profile Picture
    21 on 10 May 2024 at 19:02:45
    Re: Flow is Not Handling Greater Than/Greater Than or Equals to Correctly

    Understood. What is the filter query expression to remove rows that have nothing? 

  • creativeopinion Profile Picture
    10,466 Super User 2025 Season 2 on 10 May 2024 at 18:58:08
    Re: Flow is Not Handling Greater Than/Greater Than or Equals to Correctly

    @jpreziuso Also, it's important to note. The int() function requires a string. This means the column in your Excel table should have a value (not be empty). If you have empty cells you'll need an expression to check for an empty item first before using the int() function.

  • c_stringham_ Profile Picture
    37 on 10 May 2024 at 18:56:14
    Re: Flow is Not Handling Greater Than/Greater Than or Equals to Correctly

    @jpreziuso,

     

    I was just curious. You should still be fine either way, and like @creativeopinion was saying, using a compose actions is a great way to validate the values of dynamic expressions.

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

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!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete