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 / Filter source based on...
Power Apps
Unanswered

Filter source based on user on app load

(0) ShareShare
ReportReport
Posted on by 76

I have an app in which I want to present the data that is relevant to the user (data is stored in the SP list).
I did achieved this with 

 

SortByColumns(
Filter('Training',
Email=User().Email,
TextSearchBox1.Text in Title)
,
"Training_x0020_Sort_x0020_Code",SortOrder.Ascending
)

 

 on the Gallery under Data>Items.

 

However, I am getting delegation warning (my search bar is not working) and I am concerned about the performance of the app when I will have more users. 

 

Is there a way to filter the data on load based on the user?

Categories:
  • eka24 Profile Picture
    20,925 on at

    OnnStart oythe App create a variable;

    Set(varUser,User())

     

    Then change the formula to;

    SortByColumns(
    Filter('Training',
    Email=varUser.Email,
    TextSearchBox1.Text in Title)
    ,
    "Training_x0020_Sort_x0020_Code",SortOrder.Ascending
    )

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Krcmjaster Profile Picture
    76 on at

    @eka24 thanks, but that didn't do anything, actually it just broke my app.

  • WarrenBelz Profile Picture
    156,528 Most Valuable Professional on at

    @Krcmjaster ,

    Following the User() issue from @eka24 , the in filter is also not Delegable - the best you could do on larger data sets is

    SortByColumns(
     Filter(
     'Training',
     Email=varUser.Email,
     StartsWith(
     Title,
     TextSearchBox1.Text
     )
     ),
     "Training_x0020_Sort_x0020_Code"
    )

     

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
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard