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 Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,170)