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 / Clearcollect from a fi...
Power Apps
Unanswered

Clearcollect from a filter result

(0) ShareShare
ReportReport
Posted on by 2
I used the Filter function to filter a table in Dataverse and used ClearCollect to collect the results. The Filter function returned the correct results I needed, but in ClearCollect, some data is missing. The columns are present, but the data is not shown. 
 
For example,
 
ClearCollect(
    VarOverLookData,
    Filter(
        MO_OrderLists,
        (Status = "1" || Status = "2" || Status = "3" || Status = "4") &&
        !StartsWith(MD_SKNO, "W") &&
        !StartsWith(MD_SKNO, "Pi") &&
        !StartsWith(MD_SKNO, "Pm") &&
        !StartsWith(MD_SKNO, "P") &&
        !StartsWith(MD_SKNO, "H") &&
        !StartsWith(MD_SKNO, "L") &&
        PRODUCT_TYPE in ComboBox3.SelectedItems &&
        EDTE_YEAR = Dropdown3.Selected.Value &&
        EDTE_MONTH = Dropdown1_1.Selected.Value
    )
);
 
VarOverLookData has everything I need, the data is all there.
 
ClearCollect(
    TestCollect,
    Filter(
        MO_OrderLists,
        (Status = "1" || Status = "2" || Status = "3" || Status = "4") &&
        !StartsWith(MD_SKNO, "W") &&
        !StartsWith(MD_SKNO, "Pi") &&
        !StartsWith(MD_SKNO, "Pm") &&
        !StartsWith(MD_SKNO, "P") &&
        !StartsWith(MD_SKNO, "H") &&
        !StartsWith(MD_SKNO, "L") &&
        PRODUCT_TYPE in ComboBox3.SelectedItems &&
        EDTE_YEAR = Dropdown3.Selected.Value &&
        EDTE_MONTH = Dropdown1_1.Selected.Value
    )
);
 
TestCollect and VarOverLookData has the same filter conditions, but some data is missing.
 
This situation happens a lot. If I Addcolumns and then Clearcollect, it has the same situation. Some works and some not works. How can I make clearcollect show all data.
Categories:
I have the same question (0)
  • ronaldwalcott Profile Picture
    3,862 Moderator on at
    Where are you executing the ClearColllect? Are they executing in the same place? What are you doing with AddColumns? Is MO_OrderLists a table or another collection?
  • 顏佑-27110918-0 Profile Picture
    2 on at
     MO_OrderLists is a table in Dataverse
  • ronaldwalcott Profile Picture
    3,862 Moderator on at
    As a test remove PRODUCT_TYPE in ComboBox3.SelectedItems and see if data is populated in those empty columns. 

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