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

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

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

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

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

Highlighted
Community Champion
Community Champion

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

Thank you @timl

Very impressive, wish I could give you more kudos.

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

Highlighted
Super User III
Super User III

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

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!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (2,036)