cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
dobroo
Level: Powered On

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 Team
Community Support Team

Re: choices filtered

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

Re: choices filtered

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.

dobroo
Level: Powered On

Re: choices filtered

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 Team
Community Support Team

Re: choices filtered

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

dobroo
Level: Powered On

Re: choices filtered

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
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (5,212)