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

Results displaying blank results

Hi,

 

I created a DataTable with numerous filters, however, when I search in one of the filter boxes, it still displays the blank rows which is not what I want. 

 

For example: If I search in the Serial Number column, it displays the search result AND displays all of the rows that have a blank Serial Number. I'd like to have it only show accurate search results.

 

Here's the Items on my DataTable:

 

Sort(
Filter(
'IT Equipment List',
textInputSearch.Text in User || User = Blank(),
SInput.Text in 'Serial Number' || 'Serial Number' = Blank(),
ModelInput.Text in Model || Model = Blank(),
IsBlank(Dropdown1.Selected.Result) || 'Equipment Type'.Value = Dropdown1.Selected.Result,
IsBlank(Dropdown1_1.Selected.Result) || Location.Value = Dropdown1_1.Selected.Result
),
User
)

2 REPLIES 2
Drrickryp
Super User
Super User

@zapperrr 

Sort(
  Filter(

       'IT Equipment List',
        textInputSearch.Text = Blank() || textInputSearch.Text in User ,
        SInput.Text= Blank() || SInput.Text in 'Serial Number' ,
        ModelInput.Text = Blank() || ModelInput.Text in Model| ,
         IsBlank(Dropdown1.Selected.Result) || 'Equipment Type'.Value = Dropdown1.Selected.Result,
         IsBlank(Dropdown1_1.Selected.Result) || Location.Value = Dropdown1_1.Selected.Result

   ), User

)

 

Thanks for the response!

 

Unfortunately this does not work, it blanked everything out but I do see what you did - this only hid the blank values. I'd like for it to show the blank values but only filter the things I put into the search box. 

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (4,427)