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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Canvas App - User not ...
Power Apps
Unanswered

Canvas App - User not able to use Dropdown filters

(0) ShareShare
ReportReport
Posted on by 114

Hi all

 

I have a canvas app with a sharepoint list data source less than 2000 entries. I have two screens, one screen has a gallery that can be filtered depending what options have been selected on two dropdowns on the screen:

 

Screen 1 -this one should filter the sharepoint list by the User().Email and then dependent on the dropdowns selected. This works perfectly for me, but does not work at all for another user:

 

ITEMS property of this gallery:

Filter(
 Sort(
 [@'Fundraising Pipeline'],
 Deadlinem,
 SortOrder.Ascending
 ),'Allocated to' = User().Email &&
 (Dropdown4.SelectedText.Value = "All" || Status = Dropdown4.Selected.Value) &&
 (Dropdown1.SelectedText.Value = "All" || Deadlinem = Dropdown1.Selected.Value) &&
 TextSearchBox1.Text in Title
 
)

 

However the other screen:

 

This doesn't filter by User().Email, the User is selected via a dropdown:

 

Filter(
 Sort(
 [@'Fundraising Pipeline'],
 Deadlinem, SortOrder.Ascending
 ),
 (Dropdown4_1.Selected.Value = "All" || Status = Dropdown4_1.Selected.Value) &&
 (Dropdown1_1.Selected.Value = "All" || Deadlinem = Dropdown1_1.Selected.Value) &&
 ('Allocated to' = If(Dropdown4_2.Selected.Value = "All", 'Allocated to', Dropdown4_2.Selected.Value))
 && TextSearchBox1_3.Text in Title 

 

This works fine for the user - this proves there isn't a permissions issue with the Sharepoint List, so I'm struggling to work out why one works and the other doesn't.  This person has about 183 records allocated to them, out of a total of 700 on the sharepoint list. I tested moving his allocation to me and everything worked fine, so it can't be a delegation issue either. 

 

Any ideas why one would work and the other wouldn't?

 

Thanks, 

 

 

Categories:
I have the same question (0)
  • Verified answer
    DJ_Jamba Profile Picture
    2,837 Super User 2025 Season 2 on at

    Hi @BenBennett321 

     

    User().Email is not always the same case as PersonColumn.Email in SharePoint.
    The Filter function is case sensitive.

     

    Try:

     

    With(
     {
     fvar_query: Sort(
     [@'Fundraising Pipeline'],
     Deadlinem,
     SortOrder.Ascending
     )
     },
     Filter(
     fvar_query,
     Lower('Allocated to') = Lower(User().Email) &&
     (Dropdown4.SelectedText.Value = "All" || Status = Dropdown4.Selected.Value) &&
     (Dropdown1.SelectedText.Value = "All" || Deadlinem = Dropdown1.Selected.Value) &&
     TextSearchBox1.Text in Title
     )
    )
  • BenBennett321 Profile Picture
    114 on at

    Thank you so much, having written out the problem I thought there must be an issue with the User().Email call, and searched the user using the Office365Users connector and lo and behold this user had capital letters in the email. Didn't know how to rectify this and then your solution appeared, thanks so much I really appreciate it!

  • DJ_Jamba Profile Picture
    2,837 Super User 2025 Season 2 on at

    You're welcome!

    d(-_-)b

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 759 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 310 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 228

Last 30 days Overall leaderboard