cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Canvas App Option Set Filtering

I am looking to get a subset of Accounts from CDS/Dynamics, filtered by a multi-select option set.

 

On our Accounts Entity we have a mutli-select optionset call Relationship Type, I want to retrieve just the Accounts with the Relationship Type of Member.

 

I've tried the following based on other posts:

 

ClearCollect(collectMyMembers, Filter('Accounts', CountRows(Filter('Relationship Type', Value = [@'Relationship Type'].Member))>0))

 

or just simple:

 

ClearCollect(collectMyMembers, Filter('Accounts', 'Relationship Type' = "Member")))

 

Just get an invalid argument error on the equals sign.

 

Thanks in advance.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Hi @Brisbane_Jones ,

 

My workaround is to create a new column to store the concatenated selections, and it will be much easier to filter by than Multi-selection OptionSet field.

ClearCollect(collectMyMembers, Filter(AddColumns('Accounts',"NewColumn", Concat('Relationship Type',Text(Value))),  "Member" in NewColumn))

Hope this helps.

Sik

View solution in original post

1 REPLY 1
Highlighted
Community Support
Community Support

Hi @Brisbane_Jones ,

 

My workaround is to create a new column to store the concatenated selections, and it will be much easier to filter by than Multi-selection OptionSet field.

ClearCollect(collectMyMembers, Filter(AddColumns('Accounts',"NewColumn", Concat('Relationship Type',Text(Value))),  "Member" in NewColumn))

Hope this helps.

Sik

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (8,608)