cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper III
Helper III

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
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
Super User III
Super User III

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?

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
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 (4,212)