Hello,
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?
Thank you
@patricia_r Are all these Community Names spelt correctly without any extra spaces? Could you share u'r SP List and also your gallery.
Your formula looks fine. I did testing on my side. Its working
@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)
insert this
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.
User | Count |
---|---|
192 | |
67 | |
46 | |
41 | |
22 |
User | Count |
---|---|
252 | |
121 | |
84 | |
80 | |
72 |