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
Highlighted
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
Highlighted
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
Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

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

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (9,632)