Showing results for 
Search instead for 
Did you mean: 
Not applicable

Use dropdown to populate data

PAScreen.jpgI have a drop down that contains a distinct list of a sharepoint field named "Title". However, how can I get the edit form populate the data? The yello triangle says "Invalid Formula. Expected a value compatible with data source".

TML Advocate II
Advocate II

Re: Use dropdown to populate data

Can you give more details including your formula?

hpkeong Community Champion
Community Champion

Re: Use dropdown to populate data

Hi @Anonymous


If I am not mistaken, you are referring to:

- When Dropdown. OnChange or OnSelect, you wish your data to be filtered based on the selected results.


So, in any function, if you wish to filter selected items, you have to use:

- ClearCollect(NewCollecton, Ftiler(Original DS, FieldTitle = Dropdown.Selected.Result))

So when you change and select a new item in Dropdiwn, 

- Filter will fire and then

- ClearColelct will collect filtered information


Then, in your Gallery,Item = NewCollection.

The same applies for other control.


Hope this helps,


Community Support
Community Support

Re: Use dropdown to populate data

Hi @Anonymous,


Please check the following article for more details about how form works:

Understand data forms in Microsoft PowerApps


There are at least two property of the form control that need to be configured:

Data Source property, item property.

Item property should be one of the records from the Data source property, or at least has the same schema.


In your scenario, if you would like the form to display the record filtered by the Dropdown, then please take a try with the Lookup() function.


Lookup(DataSource, fieldName=Dropdown1.Selected.Value)

Which would return the first record that matchs the condition. For more details, see:

Filter, Search, and Lookup functions in PowerApps




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

Helpful resources

MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.


New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Power Platform 2020 release wave 1 plan

Power Platform 2020 release wave 1 plan

Features releasing from April 2020 through September 2020

Top Solution Authors
Top Kudoed Authors
Users online (6,847)