cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
burliad
Helper III
Helper III

Filter Browse Gallery by empty/blank dates

Hi All,

 

Trying to filter my browse gallery by dates that are empty/blank.  The data source is from a sharepoint list.  I would like the list to show only the records with blank dates in the "treatEnd_dt" field.

 

Here is what i have tried along with a few variations of this.

SortByColumns(Filter([@tbl_treats], IsBlank(tbl_treats.treatEnd_dt), StartsWith(Title, TextSearchBox2.Text)), "Title", If(SortDescending1, Descending, Ascending)) 

 

List Name: tbl_treats

Field to sort by if blank: treatEnd_dt

Search box: TextSearchBox2

 

Thank you in advance...

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User III
Super User III

Hi @burliad ,

Try this

SortByColumns(
   Filter(
      [@tbl_treats], 
      Value(treatEnd_dt)=0 &&
      StartsWith(
         Title, 
         TextSearchBox2.Text
      )
   ), 
   "Title", 
   If(
      SortDescending1, 
	  Descending, 
	  Ascending
   )
) 

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

5 REPLIES 5
WarrenBelz
Super User III
Super User III

Hi @burliad ,

Try this

SortByColumns(
   Filter(
      [@tbl_treats], 
      Value(treatEnd_dt)=0 &&
      StartsWith(
         Title, 
         TextSearchBox2.Text
      )
   ), 
   "Title", 
   If(
      SortDescending1, 
	  Descending, 
	  Ascending
   )
) 

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

This works perfectly!  Thank you so much!

I have added some new records and now it seems the filter is not working?  List is blank showing no records when it should show three

I removed the search box and went with this

Filter([@tbl_treats], Value(treatEnd_dt)=0)

@burliad ,

Strange - that is the filter I use all the time. If there is a date there you could try something like

DateDiff(
   treatEnd_dt,
   Today(),
   Days
)>1000

or whatever figure excludes your oldest date.

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (91,831)