cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SChappell2580
Level: Powered On

Filtering - allowing multiple values from same column

Hi 

 

I would like to filter a gallery to show items if either of results are in the datasource

 

My forumla is below:

 

SortByColumns(Filter(iPadBooking,DateRequired = TextInput1.Text, Delivered="Delivered"),"TimeRequired",Ascending)

 

I would also like to show items where Delivered="Pending" in the same gallery at the same time

 

How would I acheive this?

 

Thanks

1 REPLY 1
Super User
Super User

Re: Filtering - allowing multiple values from same column

Hi @SChappell2580

 

You can do this by combining the use of the And and Or functions.

 

The syntax would look something like this:

 

SortByColumns(
  Filter(iPadBooking, 
         Or(And(DateRequired = TextInput1.Text, Delivered="Delivered"),
            Delivered="Pending")
  ),
  "TimeRequired",Ascending
)

 

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (7,070)