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

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Collection not returin...
Power Apps
Unanswered

Collection not returing results in Combobox

(0) ShareShare
ReportReport
Posted on by 262

Hi

 

I am using the below to return a collection

 

Concurrent(
ClearCollect(
colPNChunk1,
Sort('Part List', Title, SortOrder.Ascending)
),
ClearCollect(
colPNChunk2,
Sort('Part List', Title, SortOrder.Descending)
)
);
ClearCollect(
colPN,
{Result: "All"},
colPNChunk1,
Filter(colPNChunk2, Not(ID in colPNChunk1.Title))
);
Clear(colPNChunk1);
Clear(colPNChunk2)

 

but the result are not showing in the combo box.  Any ideas?

Categories:
I have the same question (0)
  • Ethan_009 Profile Picture
    4,838 Moderator on at

    Hi @Skybluekid ,

     

    I think you are capturing same items in Chunk 1 and Chunk 2.

    Then you are creating collection where Title in Chunk 1 not present in Chunk 2. 

    This will always return 0 records, right?

     

     

  • Skybluekid Profile Picture
    262 on at

    Hi @Ethan_R 

     

    When I look in the Collections it does show 0 records in Chunk 1 and Chuck 2, but in colPN it shows 2810 records

    Skybluekid_0-1688124029337.png

    and I am using the colPN in the Combo box

  • Ethan_009 Profile Picture
    4,838 Moderator on at

    Hi @Skybluekid ,

     

    That's because of the formula you added.

    Then you performed 'Clear(colPNChunk1); Clear(colPNChunk2);' which cleared both collections to 0.

     

    If you need to validate if your formula is correctly filtering records as per your conditions.

    Add a Datatable(preview) control in the app. Then add formula of your Filter only and test the results.

    Modify accordingly until you get and then replace in your main code.

     

    Note: Don't clear your collections as you will need them to test your results.

     

    Hope this helps

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 248 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 209 Super User 2026 Season 1

#3
VASANTH KUMAR BALMADI Profile Picture

VASANTH KUMAR BALMADI 195

Last 30 days Overall leaderboard