cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dobroo
Advocate II
Advocate II

choices filtered

Hi Experts,

 

As an example, let's say I have a DataSource that's a table filled with various customer and I want a drop down where you select someone by name.

By default, the options for this field are set as:

Choices(Stammblatt.Title)

which would display as options for the drop down every name found in the Title column in the table.

 

But, I want to limit their options to only, say, entries in the table that have their Status set as Active in another column.

  

I've tried filtering it like this, but it didn't seem to work. Is there an error here, or is my understanding of how filtering works wrong?

Choices(Filter(Stammblatt, Status_column = "Active").Title)

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @dobroo,

Do you want to limit the available options within the Drop down box (Combo box control or Drop down control) based on another column value?

Which type of the Title column (that you mentioned) within your SP list?

 

I have made a test on my side, please take a try with the following workaround:8.JPG

Set the Items property of the Combo box control or Dropdown control to following formula:

Filter('20181002_case10',Status="Active").Title

On your side, you should type the following formula:

Filter(Stammblatt,Status_column="Active").Title

The GIF screenshot as below:Test1.gif

 

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Drrickryp
Super User II
Super User II

Hi @dobroo,

The dropdown would have the Items property Choices(Stammblatt.Title).  The Gallery would have the Items property 

Filter(datasource, Stamblatt.Value=Dropdown1.Selected.Value && Status="Active") // Basically, the filtering is done at the level of the Gallery.  You could add additional filters by other columns by adding more && statements.

Thanks for the prompt Reply.

 

I try to implement your information but I can not succeed.

 

Therefore more Information for you. (The list is in german therefore the strange names)

I have 2 lists. List 1 (Stammblätter) and List 2 (Tagesdokumentation).

In List 1 (Stammbläter) are the Customers with a lot of Information (columns). One column is called "Aktiv" with the options "Ja" and "Nein".

 

Now I have a lookup column in List 2 "Klient(en)" to the column "Title" to List 1 (Sharepoint property). If I start "customize the form" Powerapps starts and the DataCardValue Items property is as follows: "Choices(Tagesdokumentation.Klient_x0028_en_x0029_)" 

 

Attachments "Screen1.png"

 

I connected the second List (Stammblätter). In the DataCardValue Items property i can choose the elements with "Stammblätter.Title" (not with "choices(Stammblätter.Title)" ??????) but it works

 

Now I want fo filter this elements with a Value from another column ("Aktiv" = Ja) in Stammblätter. How did that look in the DataCardValue Items property?

Filter(Stammblätter; Stammblätter.Value=????.Selected.Value && Aktiv="Ja") 

 

How does it work?

v-xida-msft
Community Support
Community Support

Hi @dobroo,

Do you want to limit the available options within the Drop down box (Combo box control or Drop down control) based on another column value?

Which type of the Title column (that you mentioned) within your SP list?

 

I have made a test on my side, please take a try with the following workaround:8.JPG

Set the Items property of the Combo box control or Dropdown control to following formula:

Filter('20181002_case10',Status="Active").Title

On your side, you should type the following formula:

Filter(Stammblatt,Status_column="Active").Title

The GIF screenshot as below:Test1.gif

 

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Hi,

 

since 4 weeks I try to implement this and failed.

 

And the solution is Filter(Source;...).Title

 

unbelievable.

 

Thanks a lot. This works!!!!

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

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

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

Top Solution Authors
Top Kudoed Authors
Users online (43,748)