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 / Power Apps - SharePoin...
Power Apps
Answered

Power Apps - SharePoint - do not display items that have Blank/Empty value in specific columns (larger dataset)

(0) ShareShare
ReportReport
Posted on by 35

Hi all, 

 

I am working on a small app that will track asset location. 

There are 3000+ assets and not all of them have assigned City and/or Room.

I want to display in gallery only items that have at least 1 of those assigned. City and Room are choice columns in SharePoint with multiple values (single select).

Here is my Filter used in Gallery:

 

 

 

 

 

 Filter(
 'Asset management', 
 (City.Value = Dropdown_City.Selected.Value || IsBlank(Dropdown_City.Selected.Value)) 
 && (Room.Value = Dropdown_Room.Selected.Value || IsBlank(Dropdown_Room.Selected.Value))
 && ('Type of asset'.Value = Dropdown_Type_of_asset.Selected.Value || IsBlank(Dropdown_Type_of_asset.Selected.Value))
 && (!IsBlank(City.Value) || !IsBlank(Room.Value))
 )

 

 

 

 

 

Issue:

Gwynn_0-1715074034295.png

&& (!IsBlank(City.Value) || !IsBlank(Room.Value))
I get a delegation error.

Same goes for following options:

 

 

 

 

 

&& (Not(IsBlank(City.Value)) || Not(IsBlank(Room.Value)))

 

 

 

 

 

Gwynn_1-1715074564836.png

 

 

 

 

 

 

&& (City.Value <> Blank() || Room.Value <> Blank())

 

 

 

 

 

Gwynn_2-1715074698868.png

 


I am at a loss... Tried to create Collection OnStart with similar filter with delegation error on ">=" which does not make sense as it is supported.

Any Idea, suggestion, guidance is strongly appreciated. 



Categories:
I have the same question (0)
  • mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    hey @Gwynn 

     

    can you try using a collection:

    ClearCollect(
     AssetCollection,
     Filter(
     'Asset management',
     'Type of asset'.Value = Dropdown_Type_of_asset.Selected.Value || IsBlank(Dropdown_Type_of_asset.Selected.Value)
     )
    );
    
    Filter(
     AssetCollection,
     !IsBlank(City.Value) || !IsBlank(Room.Value),
     (City.Value = Dropdown_City.Selected.Value || IsBlank(Dropdown_City.Selected.Value)) &&
     (Room.Value = Dropdown_Room.Selected.Value || IsBlank(Dropdown_Room.Selected.Value))
    )
    

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • Gwynn Profile Picture
    35 on at

    Thank you @mmbr1606 for replay!

     

    This is not exactly what I'm looking for. Unfortunately i believe my explanation was not precise and has mislead you. 
    Let me try again 🙂


    1. Ignore dropdowns in my code. They do work and there are no issues there. 
    2. We have a share point list. Something like this:
    | Asset | Serial Number | City | Room |
    | Computer | 001 | London | Big |
    | iPad | 002 | New York | |
    | Mobile | 003 | | Small |
    | iPad | 004 | | | |
    3. Gallery needs to display only 001, 002, 003.

    4. Additional dropdowns are used for furthere filtering of content where City and/or Room are available. 
    5. Size of SharePoint list 3500 items. 

    I hope this clarifies it. 

  • Gwynn Profile Picture
    35 on at

    It appears i have missed major part of information while reading documentation.
    Document 

    "=" is delegable but "<>" (not equals) is not. A bit strange if you ask me. 

    My current plan is to create a collection as suggested by @MM.
    It will exceed 2000 items limit thus share point list will required additional Index_ID column that will be indexed to gather 2000+ items (ClearCollect(colList, Filter('source', Index_Id >= 1 && Index_ID <= 2000))...etc.)
    This new collection will be filtered out which should avoid delegation bug. 

    For those who are in similar situation i will update this thread when I'm done testing. 

  • Verified answer
    Gwynn Profile Picture
    35 on at

    Found solution.

    It appears my code was correct. Issue was with SharePoint ID.

    SharePoint row ID is not delegable.


    Workaround:
    1. Create new Number column
    2. Run power automate flow. Which should copy row ID into this new column.

    3. Index new column (settings > List settings > Index Columns)   

    After that i have replaced all references of ID to Index_ID (my column name) and App started to run properly. 

     

    Please note that am using a collection OnStart that gattheres 5000 items. This is done with few collections that filter out Index_ ID range. For example: Filter('source', Index_ID >= 1 && Index_ID <=2000)

    later on i combine multiple collections in to 1 which is used in app. 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard