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 function : Expe...
Power Apps
Answered

Filter function : Expected text value

(0) ShareShare
ReportReport
Posted on by 49

 

I want to display notes for an item that were written by the logged user; I typed this code, but it returns the error "Expected text value"

Filter('datasource','Created By'.Email=User().Email & ID.Value=Gallery.Selected.ID).notes

 

Categories:
I have the same question (0)
  • Verified answer
    HenriDesmet59 Profile Picture
    295 on at

    Hello @Al_Rawan ,

     

    That's because the "Filter" function return a Collection. 

    You can use the "Lookup" function to get the element : 

    LookUp('datasource','Created By'.Email=User().Email && ID.Value=Gallery.Selected.ID).notes

     

    You can also put a "First" before your "Filter" to take the first element of the collection returned : 

    First(Filter('datasource','Created By'.Email=User().Email && ID.Value=Gallery.Selected.ID).notes)

    Tell me if It's ok for you 🙂

     

    Henri

  • Al_Rawan Profile Picture
    49 on at

    Thank you @HenriDesmet59 

    Lookup is worked with me! but only returned the first item, I want to return all items.

  • Al_Rawan Profile Picture
    49 on at

    I have changed display form to gallery and that's worked thanks

  • Verified answer
    HenriDesmet59 Profile Picture
    295 on at

    Ah so keep the filter, and If you want to display all notes you can display them in a gallery 

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

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard