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 / Gallery filtered using...
Power Apps
Unanswered

Gallery filtered using two combo boxes quits working when adding a third

(0) ShareShare
ReportReport
Posted on by 237

I have the following code in the "Items" property of a gallery and everything works as expected. 

 

Filter(
Intake_Repository,
Status.Value <> "Submittal" &&
WorkingTeam.Value = "Continuous Improvement" &&
(Status.Value <> "Acknowledge") &&
(Status.Value <> "Closed"),

IsBlank(RequestTypeCB.Selected.Result) ||
IsEmpty(RequestTypeCB.SelectedItems) ||
RequestType = RequestTypeCB.Selected.Result,

IsBlank(PrimaryAssignedCB.Selected.Result) ||
IsEmpty(PrimaryAssignedCB.SelectedItems) ||
AssignedPrimary.DisplayName = PrimaryAssignedCB.Selected.Result
)

 

However, when I tried to add a third filter condition using another Combo Box using the following code, the code is accpeted but the gallery doesn't return any results.

 

Filter(
Intake_Repository,
Status.Value <> "Submittal" &&
WorkingTeam.Value = "Continuous Improvement" &&
(Status.Value <> "Acknowledge") &&
(Status.Value <> "Closed"),

IsBlank(RequestTypeCB.Selected.Result) ||
IsEmpty(RequestTypeCB.SelectedItems) ||
RequestType = RequestTypeCB.Selected.Result,

IsBlank(StatusCB.Selected.Result) ||
IsEmpty(StatusCB.SelectedItems) ||
Status.Value = StatusCB.Selected.Result,

IsBlank(PrimaryAssignedCB.Selected.Result) ||
IsEmpty(PrimaryAssignedCB.SelectedItems) ||
AssignedPrimary.DisplayName = PrimaryAssignedCB.Selected.Result
)

 

Does anyone have any idea as to what I am doing wrong?

 

The "=" sign after "Status.Value" is underlined with the following error. "Incompatible Types For Comparison. These Types Can't be Compared. Text, Record"

Categories:
  • madlad Profile Picture
    2,637 Moderator on at

    This means that StatusCB.Selected.Result is returning a record value, and Status.Value is a text value, and these can't be compared. What type of data are the choices for StatusCB?

     

    You may have to either replace the .Result or add something else on after it, specifying what part of the choice you're comparing(i.e StatusCB.Selected.Status, if "Status" was a field of the records stored in StatusCB's choices)

  • Rajkumar_M Profile Picture
    3,747 Moderator on at

    Hi

    The error message suggests that you're trying to compare incompatible types: Text and Record. It seems that the Status.Value property is of type Text, while StatusCB.Selected.Result is of type Record.

    Status.Value = (StatusCB.Selected.Result).Value

    Or

    Status.Value = (StatusCB.Selected.Result.Value)

    Reference Link : Power Apps Choices Function with Examples - SPGuides

    Thanks!

    If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 323

#3
Mohsin Ali Profile Picture

Mohsin Ali 226

Last 30 days Overall leaderboard