cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Post Patron
Post Patron

CountRows = 0 but IsBlank = false

I have used often a command like this:

IsBlank(Filter(LocalBusAtt,BusDailyID=6117906))

Which is currently returning false. However if I run this:

CountRows(Filter(LocalBusAtt,BusDailyID=6117906))

I get 0 as result. It seems like I am getting incorrect responses from IsBlank or I have totally misunderstood how it works?

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: CountRows = 0 but IsBlank = false

IsBlank() is used to check if a value is blank (e.g. text string). IsEmpty() is used to check if a table has no records. Filter() returns a table so you have to use IsEmpty() to evaluate this function.

The reason IsBlank() returns true is because an empty table is considered a value whereas the string “” is not.

View solution in original post

2 REPLIES 2
Super User
Super User

Re: CountRows = 0 but IsBlank = false

IsBlank() is used to check if a value is blank (e.g. text string). IsEmpty() is used to check if a table has no records. Filter() returns a table so you have to use IsEmpty() to evaluate this function.

The reason IsBlank() returns true is because an empty table is considered a value whereas the string “” is not.

View solution in original post

Highlighted
Post Patron
Post Patron

Re: CountRows = 0 but IsBlank = false

Wow, I think I knew that at one point and conviently forgot it. Thanks.

Helpful resources

Announcements
secondImage

New Return to Workplace

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

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 (10,281)