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 / Invalid argument type ...
Power Apps
Answered

Invalid argument type (table). Expecting a text value instead.

(0) ShareShare
ReportReport
Posted on by 76

I am having trouble trying to filter a Power Apps Gallery based on a combo box. The gallery pulls from a data set that has a column labeled Hospital(s) in use and the combo box pulls from a list that has those same hospitals. Below is the code I tried however I am getting an error Invalid Argument Type (Table). Expecting a text value instead.

IncidentManage_0-1716387263243.png

 

Filter(
 'Application List',
 If(
 IsBlank(ComboBox1.Selected.Title),
 true,
 ComboBox1.Selected.Title in Split('Application List'.'Hospital(s) in use', ";")
 )
)

 

 My main gallery is called Application List and the List that the combo box pulls from is called Hospitals, and I am trying to compare the selected value(s) from the combo box with the value in the column on my sharepoint list called Hospital(s) in use which is a multi-select column.

Categories:
  • Verified answer
    iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at
    Filter(
     'Application List',
     IsBlank(ComboBox1.Selected.Title)
     ||
     ComboBox1.Selected.Title in 'Hospital(s) in use'
    )
  • Incident-Manage Profile Picture
    76 on at

    @iAm_ManCat that works and loads the data but when I select an option from the combo box the gallery is blank even though there is data that meets the selection.

  • iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    Ok, so to debug:

     

    Take out the filter, make the gallery just point to 'Application List', then have two labels inside each row:

    Label1:

    ComboBox1.Selected.Title in ThisItem.'Hospital(s) in use'

    Label2:

    ComboBox1.Selected.Title & " in " & ThisItem. 'Hospital(s) in use' & " ?"

     

    This should visually be able to show you which part of the condition is not being met

  • Incident-Manage Profile Picture
    76 on at

    @iAm_ManCat I am trying to understand what you want. I understand that I should set the gallery to just look at application list but then after that am I adding a column to do the test?

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard