web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Formula for some reaso...
Power Apps
Unanswered

Formula for some reason not working as expected.

(0) ShareShare
ReportReport
Posted on by 56

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

Categories:
I have the same question (0)
  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @patricia_r Are all these Community Names spelt correctly without any extra spaces? Could you share u'r SP List and also your gallery.

  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    a42.jpg

    Your formula looks fine. I did testing on my side. Its working

  • patricia_r Profile Picture
    56 on at

    @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. 

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @patricia_r How many records do you have in the SP List in total?

  • patricia_r Profile Picture
    56 on at

    @CNT they are over 2K 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    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)



     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard