Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

compare total and filter

(0) ShareShare
ReportReport
Posted on 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 at
    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 at
    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 at
    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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow