cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

Error - The $filter expression must evaluate to a single boolean value

Trouble with IF & IsBlank expressions on dropdown columns. Any inputs please.

 

I get this weird runtime error:

The requested operation is invalid. Server Response: The $filter expression must evaluate to a single boolean value.

LookUp(
    AddColumns(
        Distinct(
            Filter(
                Positiondata,
				If(IsBlank(DataCardValue14_1.Selected.Value), Blank(), "'JobFamily'= DataCardValue14_1.Selected.Value")
		   ),
            Job_code
        ).Result,
        "Count",
        CountRows(
            Filter(
                Positiondata,
                Job_code = Result
            )
        )
    ),
    Count = Max(Count),
    Result
)

 

4 REPLIES 4
Highlighted
Super User
Super User

Re: Error - The $filter expression must evaluate to a single boolean value

HI @gotovamsee ,

Without looking at anything else for the moment, what does the Blank() propose to do? Should it not be testing a field  - IsBlank(FieldName)?

Highlighted
Helper III
Helper III

Re: Error - The $filter expression must evaluate to a single boolean value

@warren

 

I expect the Blank() expression to help me with ignoring the second matching input whenever the dropdown selection is blank on DC Value10. I could get past that and now held with another runtime error that looks like this.

 

Issue
The requested operation is invalid. Server Response: A binary operator with incompatible types was detected. Found operand types 'Edm.Boolean' and 'Edm.String' for operator kind 'And'.

 

Here is the updated code.

LookUp(
    AddColumns(
        Distinct(
            Filter(
                Positiondata,
				'Position Title' = DataCardValue9_1.Text,
				If(IsBlank(DataCardValue10_1.Text), Blank(), "'Country' = DataCardValue10_1.Text")
				),
            Job_code
        ).Result,
        "Count",
        CountRows(
            Filter(
                Positiondata,
                Job_code = Result
            )
        )
    ),
    Count = Max(Count),
    Result
)

 

Highlighted
Super User
Super User

Re: Error - The $filter expression must evaluate to a single boolean value

Hi @gotovamsee ,

This post may assist you - I cannot see anything else that sticks out

Highlighted
Super User
Super User

Re: Error - The $filter expression must evaluate to a single boolean value

Hi @gotovamsee ,

Just checking if you got the result you were looking for on this thread. Happy to help further if not.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Helpful resources

Announcements
Ignite

Microsoft Ignite

This will be a conference that you do not want to miss!

secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (4,903)