cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Super User III
Super User III

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
Super User III
Super User III

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

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (12,166)