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 / Creating a smaller sub...
Power Apps
Answered

Creating a smaller subset of data for a gallery to Filter with IsBlank

(0) ShareShare
ReportReport
Posted on by 28

Hi All,

 

Hoping someone can assist me with my current issue.

I have a SharePoint list of client registration data in which I'm trying to populate into a gallery based on their registration date. I have another column in my list which displays which staff member was assigned to that client and is blank when no one has been assigned to that client yet.

I have a toggle switch that when set to true, the gallery is meant to display only those clients who have not yet been assigned a staff member.

 

My current problem is that the code I have works while the dataset is small. But the list of clients increases daily, and when the number of clients exceeds my Data Row Count, it stops working.

 

My current code looks like:

 

Switch (AssignedOnlyToggle.Value,

true,

Filter( 'Onboarding - Registrations', IsBlank(AssignedStaff) And 'Registration Date' = AuditDate.SelectedDate And 'Full Membership'.Value = "Yes"),
false,

Filter( 'Onboarding - Registrations', 'Registration Date' = AuditDate.SelectedDate And 'Full Membership'.Value = "Yes")

)

There is a warning underline under IsBlank(AssignedStaff) telling me it may not work with larger datasets. And that's exactly what I'm experiencing. Since the other conditions seems to work fine, is there any way I can create a smaller subset of data which includes the selected registration date, and then have the gallery display only those rows that don't have a staff member assigned out of that smaller subset?


I tried something along the lines of the below.. but it still failed..

 

Filter( 'Onboarding - Registrations', IsBlank(AssignedStaff) And 'Client ID' in
Filter( 'Onboarding - Registrations'.'Client ID',
'Registration Date' = AuditDate.SelectedDate And 'Full Membership'.Value = "Yes")), 

 

sorry for the long post.
Appreciate any advice

Categories:
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Bront 

    If (AssignedOnlyToggle.Value,

    Filter( 'Onboarding - Registrations', Len(AssignedStaff) =0 And 'Registration Date' = AuditDate.SelectedDate And 'Full Membership'.Value = "Yes"),

    Filter( 'Onboarding - Registrations', 'Registration Date' = AuditDate.SelectedDate And 'Full Membership'.Value = "Yes")

    )

  • Bront Profile Picture
    28 on at

    Thankyou for the reply Drrickryp,

    I've tried to implement the change you've suggested. However unfortunately, it seems as though the Len(AssignedStaff) still has the same issue as IsBlank(AssignedStaff) where it doesn't work when the dataset reaches a certain size.

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Bront 

    What is assigned staff? A complex data type?

  • Bront Profile Picture
    28 on at

    When creating the column in the list, it's data type was selected as a 'Single Line of Text'

    It just stores a string.

  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Bront 

    Does AssignedStaff=Blank() work? 

  • Bront Profile Picture
    28 on at

    Yes.

    Yes it does.. that just fixed the problem I was scratching my head for hours on.
    Hahaha, thanks @Drrickryp 
    I really appreciate your help with this issue!
    (I can't believe I didn't try that earlier)

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 224 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 126

Last 30 days Overall leaderboard