web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Combined collection do...
Power Apps
Answered

Combined collection doesn't filter empty values

(0) ShareShare
ReportReport
Posted on by 103

Hello all,

 

there are two collections, each of which has a new entry stored in it. Each Entry has not a Title collected. Now I want to combine both collections into a single collection and filter the entries of both collections. 

 

CombinedCollection looks like this:

MachineTitle (String)ComponentAComponentB
123451xyxy
  xy
 xy 

 

I combine two collection:

 

 

ClearCollect(colCombined;ComponentA;ComponentB);;

 

 

Now I just want to only display empty MachineTitle values in the gallery so the user can add photos to the attachments of the new items. 

 

Gallery.Items:

 

 

Filter(colCombined;'{HasAttachments}' = false && IsBlank(ID)) 

 

 

The code isn't working, but

when I change it to !IsBlank(ID), like this:

 

 

Filter(colCombined;'{HasAttachments}' = false && !IsBlank(ID))

 

The filter here works with only stored ID, but not with empty ID. How?

 

I have tried LookUp().

 

Any help is appreciated!

 

Categories:
  • BCBuizer Profile Picture
    22,854 Super User 2026 Season 2 on at

    Hi @Aionik ,

     

    When you say "it's not working", what do you mean? Are no items shown? If yes, are you sure you have items that meet the conditions?

  • Aionik Profile Picture
    103 on at

    The Gallery is not filtering on my conditions on the combined Collection with IsBlank(ID) and '{HasAttachments}' = false. There are cleary Title missing and there are many entries which are missing attachments marked with false. With that code, I don't get any result. Here is the collection table:

    Aionik_0-1673964181948.png

     

    But it works with !IsBlank and '{HasAttachments}' = true, then I get the filtered combined Collection.


    In the Gallery I have two different Title label for different Components to show.

  • BCBuizer Profile Picture
    22,854 Super User 2026 Season 2 on at

    Hi @Aionik ,

     

    In your code, you are not filtering out blank values in the Title column, but in the ID column. Given that the original data source is SharePoint, this will never be blank, so you will not get any results.

     

    To filter out blank values in the Title column, use:

     

     

    Filter(colCombined;'{HasAttachments}' = false && !IsBlank(Title))

     

  • Aionik Profile Picture
    103 on at

    I want to only display entries who got either blank ID or Title. After 195 (Title or ID) I want to get empty entries (see picture)

    Aionik_0-1673967118842.png

    When I use code:

    Filter(colCombined;'{HasAttachments}' = false && IsBlank(Title))

    I get 0 values back on the filtering. But in the picture there are 4 items which have blank Title.

    Thank you so far for you support.

  • Verified answer
    BCBuizer Profile Picture
    22,854 Super User 2026 Season 2 on at

    Hi @Aionik ,

     

    The reason you are not getting any results is probabyl because {HasAttachments} is not false for those same items.

     

    To confirm, try without that condition:

     

    Filter(colCombined; IsBlank(Title))
  • Aionik Profile Picture
    103 on at

    I get the empty entries now with your approach. I get 8 items now, but I made 4 entries because I have two different components in the combination. 

     

    The Gallery looks like this:

    Aionik_0-1673969494516.png

     

  • BCBuizer Profile Picture
    22,854 Super User 2026 Season 2 on at

    Hi @Aionik ,

     

    Has this now resolved your issue? If so, please click the "Accept as Solution" button on the post that contains the solution so other members of the community can easily find it.

  • Aionik Profile Picture
    103 on at

    @BCBuizer Thank you! TheAttachment was filled because in the collect Funktion, where the user adds the collection of one component, I was still considering Attachment.Update. So now the Attachment field is false. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard