cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Show Distinct Items in Drop down From SQL table

I have some items in the SQL table and I want to show the distinct items of a column in Dropdown. Whenever I try to show the distinct items of a column, some of the items are missing in the dropdown list. So, Every time it leads me to create a collection in the PowerApps with distinct items. For a small number of items, this approach is okay. But I could not create a collection for a large number of items (more than 100). 

 

So, could you please guide me on how to get (approaches) the distinct items of SQL fields directly into dropdown? 

Is there any limit on drop list items count?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

Re: Show Distinct Items in Drop down From SQL table

I understand dropdown has a limit of about 500 items. But combobox does not have a limit.

I prefer combobox because of the capacity to search for an item inside the combobox itself.

View solution in original post

3 REPLIES 3
Highlighted
Super User III
Super User III

Re: Show Distinct Items in Drop down From SQL table

Insert a dropdown or Combobox then on the item property put:
Distinct(TableName,ColumnName)
This should work but also ensure there are no spaces in the rows I'm the table.
Highlighted
New Member

Re: Show Distinct Items in Drop down From SQL table

Okay. 

 

Is there any limit on drop list items count?. What is the maximum length of the list?

Highlighted
Super User III
Super User III

Re: Show Distinct Items in Drop down From SQL table

I understand dropdown has a limit of about 500 items. But combobox does not have a limit.

I prefer combobox because of the capacity to search for an item inside the combobox itself.

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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