cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Brisbane_Jones
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
v-siky-msft
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
v-siky-msft
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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (61,475)