cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
peterhui50
Regular Visitor

compare total and filter

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

1 ACCEPTED SOLUTION

Accepted Solutions

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.

View solution in original post

3 REPLIES 3
Hardesh15
Super User
Super User

@peterhui50 

 

In expression use this-

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

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

 

Capture_2.JPGCapture_1.JPG

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.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (2,253)