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 : CTYYaTAHNwleUhDfauNQiG
Power Automate - Using Flows
Answered

compare total and filter

Like (0) ShareShare
ReportReport
Posted on 28 Jul 2020 12:37:31 by 5

Hi

 

I have a flow here  

 

 

Everything works great and fast until it gets to the "filter array 2" . I just want to filter the Totals of less than 56 people before a table is created and email notification sent.

 

It looks like it is able to run fine, but it doesn't filter the Total to less than 56 at all.  First it gave me a data type error - so I've added the int(56) to change it to integer but it still didn't work.

 

Any help would be great!

Capture_image.JPG

  • Verified answer
    v-litu-msft Profile Picture
    on 29 Jul 2020 at 06:23:57
    Re: compare total and filter

    Hi @peterhui50,

     

    It's caused the "Total" value get from the Excel table is a string type, we should use an expression to convert it into integer:

    int(item()?['Totals'])Annotation 2020-07-29 105338.jpg

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • peterhui50 Profile Picture
    5 on 28 Jul 2020 at 19:17:34
    Re: compare total and filter

    still does't seem to work, not sure what I am doing wrong....

     

    Capture_2.JPGCapture_1.JPG

  • Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on 28 Jul 2020 at 14:22:00
    Re: compare total and filter

    @peterhui50 

     

    In expression use this-

    int(string('56'))
    Annotation 2020-07-28 193726.jpg
     
    Thanks
    Hardesh

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Featured topics

Restore a deleted flow