cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
THowkins96
Helper I
Helper I

Filtering: Multiple filters from same column

Hey Wizards,

 

I am creating a collection based off of multiple variables. My current formula is as below:

 

OnStart: ClearCollect( BUInfo1, Filter ( 'BU Details (Medium Security)','Closed Date' = Blank() ) )

 

I want to add in filtering by a column called "Site Type" and to remove all items that are marked as a "Superseded" site type. As I understand it the "<>" function is non-delegable so I need to create multiple "=" functions for all other possibilities. My formula is then as below:

 

OnStart: ClearCollect( BUInfo1, Filter ( 'BU Details (Medium Security)','Closed Date' = Blank(), 'Site Type'.Value = "Events", 'Site Type'.Value = "Overheads", 'Site Type'.Value = "Reception" ) )

 

However this formula doesn't create a collection, can someone help advise how I create this collection with the multiple variables for Site Type that I'm after?

Many thanks,

Tom

1 ACCEPTED SOLUTION

Accepted Solutions
v-bofeng-msft
Community Support
Community Support

Hi @THowkins96 ,

 

Please try:

 

ClearCollect( BUInfo1, Filter ( 'BU Details (Medium Security)','Closed Date' = Blank(), ('Site Type'.Value = "Events" || 'Site Type'.Value = "Overheads"||'Site Type'.Value = "Reception") ) )

 

Best Regards,

Bof

View solution in original post

2 REPLIES 2
v-bofeng-msft
Community Support
Community Support

Hi @THowkins96 ,

 

Please try:

 

ClearCollect( BUInfo1, Filter ( 'BU Details (Medium Security)','Closed Date' = Blank(), ('Site Type'.Value = "Events" || 'Site Type'.Value = "Overheads"||'Site Type'.Value = "Reception") ) )

 

Best Regards,

Bof

Hi Bof,

 

That has worked! Thank you so much. Just so I understand, the || symbol is the equivalent to using "or", is that correct?

 

KR

Tom

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,086)