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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / ClearCollect is not wo...
Power Apps
Unanswered

ClearCollect is not working.

(1) ShareShare
ReportReport
Posted on by 13

First I use 

 

Distinct(tEmployee,Employee_Department2)

 

in dropdown list and it's work well.

but when I use

 

ClearCollect(DepCollect, Distinct(tEmployee,Employee_Department2))

 

in OnVisible in first screen. data in collection is blank. 

 

How Can I do now? I do not know what's wrong about it.

Categories:
I have the same question (0)
  • Verified answer
    Gerard Simpson Profile Picture
    2,987 Moderator on at

    Hi @princezpunch 

     

    Can you try adding the ClearCollect function in the App.OnStart property instead and then right click on the App object to select Run OnStart. This should generate your collection.

     

    Hope this helps

  • princezpunch Profile Picture
    13 on at

    Hi, This is the result. Have you ever seen this problem before?

    There are just Result but no data in it.

     

    princezpunch_0-1666699948315.png

    princezpunch_2-1666700025362.png

     

     

  • Gerard Simpson Profile Picture
    2,987 Moderator on at

    Can you comment out the ClearCollect aspects and just show a preview of the Raw Distinct output table expanded below the formula bar? Cheers

  • princezpunch Profile Picture
    13 on at

    Here it is.

    princezpunch_0-1666746011525.png

    but when I use ClearCollect it be like this.

     

    princezpunch_1-1666746071070.png

     

  • princezpunch Profile Picture
    13 on at

    @AmDev Today I try this again and it's work! Thanks a lot !!!!!! 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard