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 / Multiple DataSource an...
Power Apps
Answered

Multiple DataSource and selecting one for the whole app

(0) ShareShare
ReportReport
Posted on by 583
I have an app that uses SP list for its DataSource. The list is getting full and reaching its view threshold of 5000 items. I would like to be able to duplicate this list annually and then just use a dropdown box on the homescreen to select the year. The DS is connected to many galleries and other things so I would like them all to change with the selection from the DD. The items for the dropdown are set with the OnStart of the app creating a collection like this. Giving me the previous 5 years and then more after.
 
ClearCollect(
   YearCollection,
   ForAll(
      Sequence(20, Value(Year(Today())) - 5, 1),
      {
         YearText: "SP List Name " & Text(ThisRecord.Value)
      }
   )
)
 
How can I make the selection from the DD change the DS for many things. I know I will likely have to find/replace all the old DS notations with the new one but using Dropdown.Selected.YearText does not work for a DS. Anyone with a working solution?
 
Edit: If I have avoided Delegation warnings but used some With() and Collections do I need to worry about the threshold?
Categories:
  • WarrenBelz Profile Picture
    156,963 Most Valuable Professional on at
    Firstly the 5,000 limit "threshold" is not an issue in Power Apps as long as you index any fields that are involved with queries in either SharePoint Views or Power Apps. You are allowed 20 field indexes per list in SharePoint. Also if you filter your SharePoint views to get under 5,000 items returned, you should have no issues  (I have Lists and Libraries over 100k).
    If you want to archive items into a duplicate list, the easiest way is to create the new list and then select and move the desired records with SharePoint. You can do this with a Filtered View and then select all.
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee
  • StephenGW Profile Picture
    583 on at
    Warren,
     
    Hello again. If I understand you correctly as long as my filters are returning less than 5000 items which they all should be for the most part then there will be no issues? That might make this a lot simpler in the long run.
  • Verified answer
    WarrenBelz Profile Picture
    156,963 Most Valuable Professional on at
    For SharePoint views - yes (although technically Modern Views should display more, I always filter anyway for performance reasons) . In Power Apps, as long as any columns queried are indexed in SharePoint, any Delegable query should work fine.
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee

     

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 224 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 126

Last 30 days Overall leaderboard