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)
Solved! Go to Solution.
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:
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:
Best regards,
Kris
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?
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:
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:
Best regards,
Kris
Hi,
since 4 weeks I try to implement this and failed.
And the solution is Filter(Source;...).Title
unbelievable.
Thanks a lot. This works!!!!
User | Count |
---|---|
196 | |
123 | |
88 | |
49 | |
42 |
User | Count |
---|---|
285 | |
162 | |
138 | |
77 | |
73 |