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 ,With Used For ...
Power Apps
Answered

Filter ,With Used For Location and User comparision Still In error

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

SRGDEVELOPER_0-1670331381382.png

 

Categories:
I have the same question (0)
  • Verified answer
    Kameshm05 Profile Picture
    310 Moderator on at

    Hi @Anonymous ,
    Can you please explain more about this code or your business need? From my understanding, there is one is there in Sort Syntax. below is the correct syntax for sorting. Anyway, there is another issue also. Please explain more about your business need.

    Thanks
    Sort(vList,Modified,Descending)

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    SRGDEVELOPER_0-1670386766525.png

    This my Emplyoee Table

    SRGDEVELOPER_1-1670386906335.png

    THis My Holiday List table

     

    I need to Show Based on User login and location wise Holiday list 

    Example-If user belongs to India Gallery will show Only India List And User belongs to Singapore THen it will show Only Singapore holiday 

     

  • Verified answer
    Kameshm05 Profile Picture
    310 Moderator on at

    Thanks @Anonymous .
    Can you please share the employee column name and column type in the Employee Table?

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    It Showing In Screenshot same i have for both table

     

  • Verified answer
    Kameshm05 Profile Picture
    310 Moderator on at

    I assume the alias name is the employee column and the datatype is "Single line of text". My suggestion is 
    With({userLoc:LookUp('<EmployeeTableName>'),AliasName = User().FullName,Location)},Filter('<HolidayTable',Location = userLoc))

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    SRGDEVELOPER_0-1670394800028.png

    Its Showing Error

     

  • Verified answer
    Kameshm05 Profile Picture
    310 Moderator on at

    With({userLoc:LookUp('Employee Tables'),AliasName = User().FullName,Location)},Filter('Holiday Lists',Location = userLoc))


    This is the correct syntax, you added extra bracket in Lookup

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    SRGDEVELOPER_0-1670396288736.pngNO Error But Still No data is showing

     

    SRGDEVELOPER_1-1670396418535.png

    I used This Way also Its shwoing error i think with is for shrepoint not for dataverse

  • Verified answer
    Kameshm05 Profile Picture
    310 Moderator on at

    The problem is with the alias name comparison with the currently logged user. The best practice is to compare the mail value of the user rather than the display name. so please compare the user email to the user display name. Anyway, the syntax is correct so you have to check the right condition. If you find any email column or person column, please user the column for comparison.
    Thanks

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 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard