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
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Users online (5,906)