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 on a Filter Function

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi all,
I have a collection(AvailableRoomCollection) like below,
collections1.PNG
And If I click on MeetingTimeSuggestion then there is another collection like below
collections2.PNG
So I want to get data where OrganizerAvailability = "Free", I tried using the filter function but it didn't work. I get an error "Invalid Argument Type". I am getting "Invalid argument type" on the equals sign '='

 

ClearCollect(testColection, 
 Filter(AvailableRoomCollection, MeetingTimeSuggestions.OrganizerAvailability = "Free")
);

 

Any help is appreciated. Thanks in advance.


Categories:
  • Rahber Profile Picture
    1,935 on at

    I think there is a column name issue.

    Your column name is MeetingTimeSuggestion and you are using MeetingTimeSuggestions.OrganizerAvailability

    Can you please re confirm the spelling you are using in the Filter function?

     

    To test scenario out I created a simple test and its working fine. This is on my button on select.

     

     

    Collect( AvailableRoomCollection, { Name: "One", MeetingTimeSuggestion: { Title:1 ,OrganizerAvailability: "Free" } }, { Name: "Two", MeetingTimeSuggestion: { Title:2 ,OrganizerAvailability: "Busy" } } ) ; ClearCollect(testColection, 
     Filter(AvailableRoomCollection, MeetingTimeSuggestion.OrganizerAvailability = "Free")
    );

     

     

     

    Please click Accept as Solution if it resolved your problem or give it a Thumbs Up if it helped you in anyway this will allow other people to search correct solutions effectively.

    Thanks,

    Rahber

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @Rahber,
    oh sory, there's a typo in my question. The actual column name is MeetingTImeSuggestions same as in the filter function.
    collections3.PNG
     


  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    According to the formula that you mentioned, I think there is something wrong with it. Within your Filter function, the MeetingTimeSuggestions.OrganizerAvailability formula would return a Table value, it could not be compared with a Text value directly.

     

    On your side, please consider modify your formula as below:

    ClearCollect(
     testColection, 
     Filter(
     AvailableRoomCollection, 
     Not("Busy" in Concat(MeetingTimeSuggestions, OrganizerAvailability & ";"))
     )
    );

     

    Please consider take a try with above solution, check if the issue is solved.

     

    Best regards,

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
11manish Profile Picture

11manish 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard