cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Meneghino
Community Champion
Community Champion

How to differentiate between zero-length string and null in data source?

IsBlank("") returns true, so how can we differentiate between "" and NULL in a data source text field?

Many thanks for any input.

 

PS If you have similar issues, please vote up this idea:

https://powerusers.microsoft.com/t5/PowerApps-Ideas/Function-to-produce-blank-value/idi-p/14353

 

1 ACCEPTED SOLUTION

Accepted Solutions
timl
Super User
Super User

Hi @Meneghino,

 

I notice that the CountA function enables you to count non null values.

 

With my SQL Server data source, I'm able to distinguish between blank and null values using syntax that looks like this:

 

CountA(Table({NullTest: <StringToCheck>})

 

Maybe you could try something similar?

 

Capture1.PNG

View solution in original post

3 REPLIES 3
timl
Super User
Super User

Hi @Meneghino,

 

I notice that the CountA function enables you to count non null values.

 

With my SQL Server data source, I'm able to distinguish between blank and null values using syntax that looks like this:

 

CountA(Table({NullTest: <StringToCheck>})

 

Maybe you could try something similar?

 

Capture1.PNG

View solution in original post

Meneghino
Community Champion
Community Champion

Thank you @timl

Very impressive, wish I could give you more kudos.

Pity that we have to do these things with work-arounds though...

Glad you found that useful! Yes, it's a pity about having to use these work-arounds.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,373)