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 / Collection Data is Blank
Power Apps
Answered

Collection Data is Blank

(0) ShareShare
ReportReport
Posted on by 35

Hello-

 

I have a collection that is loaded (ClearCollect) when a screen is opened (OnVisible). I want the collection to only contain active records. Note that this is a custom entity, but for the sake of anonymity I will be using Accounts instead of the entity name. 

 

When I set the formula collect all entity records, it works perfectly -> ClearCollect(ActiveAccounts, 'Accounts')

 

However, when I set the formula to collect based on status or status reason, I get an error.

 

So I'm trying to have it set based on a system view -> ClearCollect(ActiveAccounts, 'Accounts', Accounts(Views). 'Active Accounts')

 

I'm not getting an error message, but my gallery doesn't show any data. I know for sure that my database (CDS) has 42 records on that particular view. (record count is low because this is a sandbox). 

 

My gallery is set to show the collection items, and it does show two blank rows, but the data itself is blank. 

 

Any idea why? I've been combing through blogs and docs without much help. 

Here are the resources I've tried to follow: 

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/create-update-collection

https://powerusers.microsoft.com/t5/Building-Power-Apps/How-to-resolve-delegation-warning-message-on-PowerApps-formula/td-p/274507

https://davidlozzi.com/2019/02/01/best-practices-for-working-with-data-in-microsoft-powerapps/

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/delegation-overview#delegable-data-sources

 

 

Please help!

 

Categories:
I have the same question (0)
  • Verified answer
    v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @Duppong ,

    The ClearCollect function syntax is incorrect.

    If you want to filter the Account entity on status field, please try this:

    ClearCollect(ActiveAccounts,Filter(Accounts,Status='Status (Accounts)'.Active))

    Hope this helps.

    Sik

  • PADuppong Profile Picture
    35 on at

    It worked! Thank you!

    Is there a resource I can go to and learn about syntax so that I don't encounter issues like this again?

    Thanks!

  • v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @Duppong ,

     

    You can refer to the tutorial in this blog to learn the usage of Option Set, and refer to this doc to understand Filter function.

    Hope this helps.

    Sik

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 531 Most Valuable Professional

#2
Haque Profile Picture

Haque 261

#3
Kalathiya Profile Picture

Kalathiya 221 Super User 2026 Season 1

Last 30 days Overall leaderboard