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 / Make a new Collection ...
Power Apps
Unanswered

Make a new Collection based on another collection with a Filter

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

What I have:  Collection called "colAmendData"

ClearCollect(colAmendData,
AddColumns(
ShowColumns(gal_AmendData_View1.AllItems,
"AUTO_ID", "SKU", "PRODUCT_DESCRIPTION", "QTY", "TARGET_GP", "TARGET_PRICE"
),
"TARGET_GP_EDIT", "",
"TARGET_PR_EDIT", ""
)
)

 

What I Need:

I need to create a new collection based on "colAmendData"  but filter   where..

"TARGET_GP_EDIT" is not Null   OR "TARGET_PR_EDIT" is not Null in any given row. ?

 

//Filter collection code ???

ClearCollect( colFilterAmendData, Filter( colAmendData ,TARGET_GP_EDIT <> ""  Or  TARGET_PR_EDIT <> ""  ) );

 

Thanks

dave

 

 

Categories:
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    I usually advise against creating more and more collections as this is just more and more overhead on your app and memory, but in this case the following should provide a table that you can put into a collection:

    Filter( colAmendData,
     !IsBlank(TARGET_GP_EDIT) || 
     !IsBlank(TARGET_PR_EDIT)
    )

     

    I hope this is helpful for you.

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard