cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
BrianHFASPS
Level 8

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
mdevaney
Level 8

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.
2 REPLIES 2
mdevaney
Level 8

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.
BrianHFASPS
Level 8

Re: CountRows = 0 but IsBlank = false

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

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 420 members 5,085 guests
Please welcome our newest community members: