admin管理员组

文章数量:1279234

Regarding Power Automate flow

I have an Excel file with column name city. There are more than 100 city names in that column. Using filter query equals expression, I am able to get three city names, but not able to get more than three equal expression.

Is there any way to get filtered data from Excel if I want more city names to filter?

I'm currently using this code:

or(or(equals(item().City, 'ABCD',equals(item().City, 'EFGH')),equals(item().City, 'IJKL'))

I want more city names to filter.

Regarding Power Automate flow

I have an Excel file with column name city. There are more than 100 city names in that column. Using filter query equals expression, I am able to get three city names, but not able to get more than three equal expression.

Is there any way to get filtered data from Excel if I want more city names to filter?

I'm currently using this code:

or(or(equals(item().City, 'ABCD',equals(item().City, 'EFGH')),equals(item().City, 'IJKL'))

I want more city names to filter.

Share Improve this question edited Feb 25 at 6:09 marc_s 755k184 gold badges1.4k silver badges1.5k bronze badges asked Feb 25 at 6:03 Sonu HuriawalSonu Huriawal 1 2
  • What’s the problem? If you add one more, do you get an error? Also, “Filter query”, show us what that is exactly. There’s “Filter array” so it’s not clear for me. – Skin Commented Feb 25 at 7:05
  • Hi Thanks for revert. Please help me more I have tried your way and sucessfully get city names. Buy unable to get filtered city names along with all column data as output – Sonu Huriawal Commented Feb 27 at 15:52
Add a comment  | 

1 Answer 1

Reset to default 0

A simple way is to maintain a list of valid cities and then check if your item()?['City'] exists in this list. You can continue to add more cities or even have it read dynamically from some data source.

here's a simple demonstration

本文标签: