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 / Expected Text value
Power Apps
Unanswered

Expected Text value

(0) ShareShare
ReportReport
Posted on by 52

Hi everyone,

 

I'm trying to filter data from a Sharepoint List 'Item Details' into a gallery that is using data from another Sharepoint List 'Record Details'.

The connection between Sharepoint Lists is the field Item Key

I'm getting 2 errors.
The First function should filter by the text input "search item name".
The Second Funtion also gets data from the 'Item Details' Sharepoint List, and should show the selected option from the Combobox above it.
Both functions are giving me "Expected Text value" error.


1st error:

Miguel36_0-1648456251036.png

2nd error:

Miguel36_2-1648456358538.png

Item Details:

Miguel36_3-1648456642472.png

Record Details:

Miguel36_4-1648456707200.png

 

Thank you 🙂

 

 

 

Categories:
  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    You are trying to filter a gallery in a Label.

    Write this on the Itens property of the gallery:

     

    If(IsBlank(TextInput2.Text),

    'Item Details',

    Search(

    'Item Details',

    TextInput2.Text,

    "ItemName")

    )

     

    If you need additional help please tag me in your reply and please like my reply.
    If my reply provided you with a solution, pleased mark it as a solution ✔️!

    Best regards,

    Gonçalo Nogueira

    Check my LinkedIn!

    Buy me a coffee!

    Check my User Group (pt-PT)!

    Last Post on Community

    My website!

  • Miguel36 Profile Picture
    52 on at

    Thank you for your response!
    The Item Property of the gallery is already using the Record Details, which are the 2 labels that are showing a correct value right now in the gallery (date and status).

    Miguel36_0-1648457516930.png

    The labels in the gallery that are not working are not directly connected to the 'Record Details' and get their data from the 'Item Details' Sharepoint List, which should compare the 'Item Key' field with the Item Key field in the 'Record Details' Item Key field, as you can see in my original post

  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    A label is expecting a Text or a Number.
    You are giving it a Table or an item (Filter returns a Table)

  • Miguel36 Profile Picture
    52 on at

    So can I correct this? maybe with a lookup function? and how?

     

    Thanks in advance 🙂

  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    First one should be something like that:

     

    LookUp(

    'Item Details',

    ItemName = TextInput2.Text  && 'Item Key' = ThisItem.ItemKey).ItemName

     

    Second one should be something like that:

    LookUp(

    'Item Details',

    'Learning Platform'.Value = ComboBox4.Selected.Value && 'Item Key' = ThisItem.ItemKey).'Learning Platform'.Value

     

    If you need additional help please tag me in your reply and please like my reply.
    If my reply provided you with a solution, pleased mark it as a solution ✔️!

    Best regards,

    Gonçalo Nogueira

    Check my LinkedIn!

    Buy me a coffee!

    Check my User Group (pt-PT)!

    Last Post on Community

    My website!

  • Miguel36 Profile Picture
    52 on at

    Miguel36_0-1648468401671.png

    The errors are gone, it worked but I think because of the function used in the gallery, it is not working. How can I correct this? any idea? 🙂

    Miguel36_1-1648468437064.png

     

  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    The LookUp can also be empty, MAYBE, there is not any item that fills the condition.. Put the mouse over the lookup and see if it is empty or not..

     

    Your formula on the gallery seens correct

  • Miguel36 Profile Picture
    52 on at

    Found it, I need to add an "All" option in the comboboxes.
    How can I add the ["All"] option in this combobox while still mantaining this function?
    Something like ["All"] && Choices('Item Details'.Provider)   (I know this doesn't work, but just giving the idea)

    Miguel36_0-1648472444093.png

    Sorry for the questions... and thank you for all the help!

     

     

  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    Write this on App OnStart:

     

    ForAll(Choices('ItemDetails'.Provider),
    Collect(CollectionValues, {Name: ThisRecord.Value})
    );

    Collect(CollectionValues, {Name: "All"})

     

    After that set the source of your dropdown to the new collection.

    For me, it worked

     

    Nogueira1306_0-1648473200790.png

     

    If you need additional help please tag me in your reply and please like my reply.
    If my reply provided you with a solution, pleased mark it as a solution ✔️!

    Best regards,

    Gonçalo Nogueira

    Check my LinkedIn!

    Buy me a coffee!

    Check my User Group (pt-PT)!

    Last Post on Community

    My website!

     

  • Miguel36 Profile Picture
    52 on at

    The collection worked in the dropdown.

    Miguel36_1-1648473866489.png
    But the filter is only working for specific values.
    If I select the "All" option it shows blank:

    Miguel36_2-1648473892217.png

     

     

     

     

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 432 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 347

#3
WarrenBelz Profile Picture

WarrenBelz 254 Most Valuable Professional

Last 30 days Overall leaderboard