I need your assistance on determining if the formula that i am using is wrong or i need to add to it. I have a dropdown where i select list of communities that i am getting from my datasource which is SharePoint yet i am seeing duplicates and i don't understand why. Here is the formula i am using: Sort(Distinct(FormInput, CommunityName), Result). Any ideas on why this would be happening?
@CNT Yes they are spelled correctly. Also i am noticing that all of them are not showing up either. I know that Distinct is not a delegable query. I have over 80 different communities.
PowerApps can manage only 2000 items max
If your SP is over 2k yo will need to create Collections in PowerApps to collect the data and the create the master collection to join all the values
In the On Start option or On Visble (of your first sceen)
ClearCollect( Collection_1, Filter( SP_List, ID < 2000 ) ); ClearCollect( Collection_2, Filter( SP_List, ID > 2000 && ID < 4000 ) ); ClearCollect( Master, Collection_1, Collection_2 ) //Your will need to use a differente ID column the ID from SP wont work for this formula
Then in your dropdown use your formula
Sort(Distinct(Master, CommunityName), Result)
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
At the monthly call, connect with other leaders and find out how community makes your experience even better.