cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
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
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
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Top Solution Authors
Top Kudoed Authors
Users online (70,469)