cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Filter non null values

Hi All,

 

I am unable to filter non null values that I am pulling from a SQL table.

The query that I am running is:

 

 

ClearCollect(
        offlineviewLocationCollectionUSA,
        Filter(
            '[dbo].[locationConfigTable]',
            CountryCode = "USA" && SubRegionName <> Blank()
        )
    )

If I change the code to retrieve null values 

SubRegionName = Blank()

it works fine. However, it does not pull non null values.

I have also tried using

!IsBlank(SubRegionName)

but it gives delegation warning. 

Any thoughts on how to overcome this?

 

Thanks,

AShep

 

 

 

1 REPLY 1
Highlighted
Community Support
Community Support

Re: Filter non null values

Hi @AShep ,

That's a little strange...

Please try this formula:

ClearCollect(
        offlineviewLocationCollectionUSA,
        Filter(
            '[dbo].[locationConfigTable]',
            CountryCode = "USA" && SubRegionName=""
        )
    )

The reason why using IsBlank function will lead to delegation warning is that IsBlank function is no-delegation function of SQL. If your record is larger than 2000, I recommend you not use this, which will make your app not perform well.

If your record is smaller than 2000, do not forget to change the non-delagation limit to 2000 to avoid the effect of delegation.delegation.jpg

 

 

Best regards,

Community Support Team _ Phoebe Liu

 

 

 

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

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

Top Solution Authors
Top Kudoed Authors
Users online (5,556)